Class ExternalAuthToken

  • All Implemented Interfaces:
    IAuthToken

    public class ExternalAuthToken
    extends java.lang.Object
    implements IAuthToken
    Authentication token that wraps an externally authenticated principal to return.
    • Field Detail

      • principal

        protected org.apache.catalina.realm.GenericPrincipal principal
    • Constructor Detail

      • ExternalAuthToken

        public ExternalAuthToken​(org.apache.catalina.realm.GenericPrincipal principal)
    • Method Detail

      • getPrincipal

        public java.security.Principal getPrincipal()
      • getElements

        public java.util.Enumeration<java.lang.String> getElements()
        Description copied from interface: IAuthToken
        Returns an enumeration of the names of the attributes existing within this AttrSet.
        Specified by:
        getElements in interface IAuthToken
        Returns:
        an enumeration of the attribute names.
      • get

        public java.lang.Object get​(java.lang.String k)
        Description copied from interface: IAuthToken
        Gets an attribute value.
        Specified by:
        get in interface IAuthToken
        Parameters:
        k - the name of the attribute to return.
        Returns:
        the attribute value
      • set

        public boolean set​(java.lang.String k,
                           java.lang.String v)
        Description copied from interface: IAuthToken
        Sets an attribute value within this AttrSet.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - the name of the attribute
        v - the attribute object.
        Returns:
        false on an error
      • getInString

        public java.lang.String getInString​(java.lang.String k)
        Description copied from interface: IAuthToken
        Gets an attribute value.
        Specified by:
        getInString in interface IAuthToken
        Parameters:
        k - the name of the attribute to return.
        Returns:
        the attribute value
      • set

        public boolean set​(java.lang.String k,
                           byte[] v)
        Description copied from interface: IAuthToken
        Stores the byte array with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on an error
      • getInByteArray

        public byte[] getInByteArray​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the byte array value for name. The value should have been previously stored as a byte array (it will be CMS.AtoB decoded).
        Specified by:
        getInByteArray in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The byte array or null on error.
      • set

        public boolean set​(java.lang.String k,
                           java.lang.Integer v)
        Description copied from interface: IAuthToken
        Stores the Integer with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on an error
      • getInInteger

        public java.lang.Integer getInInteger​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the Integer value for name.
        Specified by:
        getInInteger in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The Integer or null on error.
      • set

        public boolean set​(java.lang.String k,
                           java.math.BigInteger[] v)
        Description copied from interface: IAuthToken
        Stores the BigInteger array with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on an error
      • getInBigIntegerArray

        public java.math.BigInteger[] getInBigIntegerArray​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the BigInteger array value for name.
        Specified by:
        getInBigIntegerArray in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value or null on error.
      • set

        public boolean set​(java.lang.String k,
                           java.util.Date v)
        Description copied from interface: IAuthToken
        Stores the Date with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on an error
      • getInDate

        public java.util.Date getInDate​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the Date value for name.
        Specified by:
        getInDate in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value or null on error.
      • set

        public boolean set​(java.lang.String k,
                           java.lang.String[] v)
        Description copied from interface: IAuthToken
        Stores the String array with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        False on error.
      • getInStringArray

        public java.lang.String[] getInStringArray​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the String array value for name.
        Specified by:
        getInStringArray in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value or null on error.
      • set

        public boolean set​(java.lang.String k,
                           X509CertImpl v)
        Description copied from interface: IAuthToken
        Stores the X509CertImpl with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on error
      • getInCert

        public X509CertImpl getInCert​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the X509CertImpl value for name.
        Specified by:
        getInCert in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value or null on error.
      • set

        public boolean set​(java.lang.String k,
                           CertificateExtensions v)
        Description copied from interface: IAuthToken
        Stores the CertificateExtensions with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on error
      • getInCertExts

        public CertificateExtensions getInCertExts​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the CertificateExtensions value for name.
        Specified by:
        getInCertExts in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value.
      • set

        public boolean set​(java.lang.String k,
                           Certificates v)
        Description copied from interface: IAuthToken
        Stores the Certificates with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on error
      • getInCertificates

        public Certificates getInCertificates​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the Certificates value for name.
        Specified by:
        getInCertificates in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value.
      • set

        public boolean set​(java.lang.String k,
                           byte[][] v)
        Description copied from interface: IAuthToken
        Stores the byte[][] with the associated key.
        Specified by:
        set in interface IAuthToken
        Parameters:
        k - The attribute name.
        v - The value to store
        Returns:
        false on error
      • getInByteArrayArray

        public byte[][] getInByteArrayArray​(java.lang.String k)
        Description copied from interface: IAuthToken
        Retrieves the byte[][] value for name.
        Specified by:
        getInByteArrayArray in interface IAuthToken
        Parameters:
        k - The attribute name.
        Returns:
        The value.