Class ExternalAuthToken

java.lang.Object
com.netscape.certsrv.authentication.ExternalAuthToken
All Implemented Interfaces:
IAuthToken

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

    • principal

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

    • ExternalAuthToken

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

    • getPrincipal

      public Principal getPrincipal()
    • getElements

      public Enumeration<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 Object get(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(String k, 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 String getInString(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(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(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(String k, 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 Integer getInInteger(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(String k, 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 BigInteger[] getInBigIntegerArray(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(String k, 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 Date getInDate(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(String k, 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 String[] getInStringArray(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(String k, org.mozilla.jss.netscape.security.x509.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 org.mozilla.jss.netscape.security.x509.X509CertImpl getInCert(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(String k, org.mozilla.jss.netscape.security.x509.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 org.mozilla.jss.netscape.security.x509.CertificateExtensions getInCertExts(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(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(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(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(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.