Class LdapDnPrincipal

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.security.Principal>, java.security.Principal

    public class LdapDnPrincipal
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable, java.lang.Comparable<java.security.Principal>
    Provides a custom implementation for adding LDAP principals to a subject.
    Author:
    Middleware Services
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LdapDnPrincipal​(java.lang.String name, LdapEntry entry)
      Creates a new ldap principal with the supplied name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.security.Principal p)  
      boolean equals​(java.lang.Object o)  
      LdapEntry getLdapEntry()
      Returns the ldap entry for this ldap principal.
      java.lang.String getName()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • LdapDnPrincipal

        public LdapDnPrincipal​(java.lang.String name,
                               LdapEntry entry)
        Creates a new ldap principal with the supplied name.
        Parameters:
        name - of an ldap DN
        entry - ldap entry associated with this principal
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • getLdapEntry

        public LdapEntry getLdapEntry()
        Returns the ldap entry for this ldap principal.
        Returns:
        ldap entry
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(java.security.Principal p)
        Specified by:
        compareTo in interface java.lang.Comparable<java.security.Principal>