Class ExternalAuthToken
java.lang.Object
org.dogtagpki.server.authentication.AuthToken
com.netscape.certsrv.authentication.ExternalAuthToken
Authentication token that wraps an externally authenticated
principal to return.
-
Field Summary
FieldsFields inherited from class org.dogtagpki.server.authentication.AuthToken
GROUP, GROUPS, mAttrs, TOKEN_AUTHENTICATED_CERT_SUBJECT, TOKEN_AUTHMGR_INST_NAME, TOKEN_AUTHTIME, TOKEN_CERT, TOKEN_CERT_EXTENSIONS, TOKEN_CERT_NOTAFTER, TOKEN_CERT_NOTBEFORE, TOKEN_CERT_SERIALNUM, TOKEN_CERT_SUBJECT, TOKEN_CERT_TO_REVOKE, TOKEN_SHARED_TOKEN_AUTHENTICATED_CERT_SUBJECT, UID, USER, USER_DN, USER_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an attribute value.Enumerate all attribute names in the AuthToken.Retrieves the BigInteger array value for name.byte[]
Retrieves the byte array value for name.byte[][]
Retrieves the byte[][] value for name.org.mozilla.jss.netscape.security.x509.X509CertImpl
Retrieves the X509CertImpl value for name.org.mozilla.jss.netscape.security.x509.CertificateExtensions
Retrieves the CertificateExtensions value for name.Retrieves the Certificates value for name.Retrieves the Date value for name.Retrieves the Integer value for name.Gets an attribute value.String[]
Retrieves the String array value for name.boolean
Stores the byte array with the associated key.boolean
Stores the byte[][] with the associated key.boolean
set
(String k, Certificates v) Stores the Certificates with the associated key.boolean
Stores the Integer with the associated key.boolean
Sets an attribute value within this AttrSet.boolean
Stores the String array with the associated key.boolean
set
(String k, BigInteger[] v) Stores the BigInteger array with the associated key.boolean
Stores the Date with the associated key.boolean
Stores the CertificateExtensions with the associated key.boolean
Stores the X509CertImpl with the associated key.Methods inherited from class org.dogtagpki.server.authentication.AuthToken
delete, getAuthManagerInstName, getAuthTime, getVals
-
Field Details
-
principal
protected org.apache.catalina.realm.GenericPrincipal principal
-
-
Constructor Details
-
ExternalAuthToken
public ExternalAuthToken(org.apache.catalina.realm.GenericPrincipal principal)
-
-
Method Details
-
getPrincipal
-
getElements
Description copied from class:AuthToken
Enumerate all attribute names in the AuthToken.- Overrides:
getElements
in classAuthToken
- Returns:
- Enumeration of all attribute names in this AuthToken.
-
get
Description copied from class:AuthToken
Gets an attribute value. -
set
Description copied from class:AuthToken
Sets an attribute value within this AttrSet. -
getInString
Description copied from class:AuthToken
Gets an attribute value.- Overrides:
getInString
in classAuthToken
- Parameters:
k
- the name of the attribute to return.- Returns:
- the attribute value
-
set
Description copied from class:AuthToken
Stores the byte array with the associated key. -
getInByteArray
Description copied from class:AuthToken
Retrieves the byte array value for name. The value should have been previously stored as a byte array (it will be CMS.AtoB decoded).- Overrides:
getInByteArray
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The byte array or null on error.
-
set
Description copied from class:AuthToken
Stores the Integer with the associated key. -
getInInteger
Description copied from class:AuthToken
Retrieves the Integer value for name.- Overrides:
getInInteger
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The Integer or null on error.
-
set
Description copied from class:AuthToken
Stores the BigInteger array with the associated key. -
getInBigIntegerArray
Description copied from class:AuthToken
Retrieves the BigInteger array value for name.- Overrides:
getInBigIntegerArray
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The value or null on error.
-
set
Description copied from class:AuthToken
Stores the Date with the associated key. -
getInDate
Description copied from class:AuthToken
Retrieves the Date value for name. -
set
Description copied from class:AuthToken
Stores the String array with the associated key. -
getInStringArray
Description copied from class:AuthToken
Retrieves the String array value for name.- Overrides:
getInStringArray
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The value or null on error.
-
set
Description copied from class:AuthToken
Stores the X509CertImpl with the associated key. -
getInCert
Description copied from class:AuthToken
Retrieves the X509CertImpl value for name. -
set
Description copied from class:AuthToken
Stores the CertificateExtensions with the associated key. -
getInCertExts
Description copied from class:AuthToken
Retrieves the CertificateExtensions value for name.- Overrides:
getInCertExts
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The value.
-
set
Description copied from class:AuthToken
Stores the Certificates with the associated key. -
getInCertificates
Description copied from class:AuthToken
Retrieves the Certificates value for name.- Overrides:
getInCertificates
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The value.
-
set
Description copied from class:AuthToken
Stores the byte[][] with the associated key. -
getInByteArrayArray
Description copied from class:AuthToken
Retrieves the byte[][] value for name.- Overrides:
getInByteArrayArray
in classAuthToken
- Parameters:
k
- The attribute name.- Returns:
- The value.
-