Class MOSAP

java.lang.Object
com.isode.dsapi.syntax.MOSAP
All Implemented Interfaces:
Comparable<MOSAP>

public class MOSAP extends Object implements 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
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAccessPoint

      public AccessPoint getAccessPoint()
      Returns:
      Access point. This will never be null.
    • getCategory

      public MOSAP.Category getCategory()
      Returns:
      Category. This will never be null.
    • getCanonicalForm

      public MOSAP getCanonicalForm() throws BadSyntaxException
      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

      public MOSAP 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 of hashCode(), compareTo(MOSAP)
      Returns:
      canonical form of object.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(MOSAP o)
      Specified by:
      compareTo in interface Comparable<MOSAP>