Package com.isode.dsapi.syntax
Class MOSAP
java.lang.Object
com.isode.dsapi.syntax.MOSAP
- All Implemented Interfaces:
Comparable<MOSAP>
This class stores information about a MOSAP.
This is an immutable class.
Examples:
master#ou=System,o=Isode#URI+1+URL+ldap://localhost
shadow#cn=DSA,ou=System,o=Isode#TELEX+00728722+IP-APP+11+127.0.0.1
- Since:
- 15.0
- Author:
- mv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enumeration defining the different categories that can be used to create a MOSAP. -
Constructor Summary
ConstructorsConstructorDescriptionMOSAP
(AccessPoint ap, MOSAP.Category category) Constructor to create an object with the given data.Constructor to create an object with the given data. -
Method Summary
-
Constructor Details
-
MOSAP
Constructor to create an object with the given data.- Parameters:
str
- String representation. This must never be null.- Throws:
BadValueException
- if the input is invalid.BadSyntaxException
- if it is not possible to parse AccessPoint or PresentationAddress objects in this environment.
-
MOSAP
Constructor to create an object with the given data.- Parameters:
ap
- Access point. This must never be null.category
- Category. This must never be null.- Throws:
BadValueException
- if any input is null.
-
-
Method Details
-
toString
-
getAccessPoint
- Returns:
- Access point. This will never be null.
-
getCategory
- Returns:
- Category. This will never be null.
-
getCanonicalForm
The access point is converted to its canonical form.- Returns:
- canonical form of object.
- Throws:
BadSyntaxException
- if it is not possible to parse the presentation address.
-
getUnusableCanonicalForm
The access point is converted to its canonical form. However, the ASN value of access point is not assigned. As a result, this form can not be used for any external operations. This method should only be used by classes that need the canonical form without any exceptions, e.g. in the implementation ofhashCode()
,compareTo(MOSAP)
- Returns:
- canonical form of object.
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<MOSAP>
-