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 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.X509CertImplRetrieves the X509CertImpl value for name.org.mozilla.jss.netscape.security.x509.CertificateExtensionsRetrieves 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.booleanStores the byte array with the associated key.booleanStores the byte[][] with the associated key.booleanset(String k, Certificates v) Stores the Certificates with the associated key.booleanStores the Integer with the associated key.booleanSets an attribute value within this AttrSet.booleanStores the String array with the associated key.booleanset(String k, BigInteger[] v) Stores the BigInteger array with the associated key.booleanStores the Date with the associated key.booleanStores the CertificateExtensions with the associated key.booleanStores the X509CertImpl with the associated key.Methods inherited from class 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:AuthTokenEnumerate all attribute names in the AuthToken.- Overrides:
getElementsin classAuthToken- Returns:
- Enumeration of all attribute names in this AuthToken.
-
get
-
set
-
getInString
Description copied from class:AuthTokenGets an attribute value.- Overrides:
getInStringin classAuthToken- Parameters:
k- the name of the attribute to return.- Returns:
- the attribute value
-
set
-
getInByteArray
Description copied from class:AuthTokenRetrieves the byte array value for name. The value should have been previously stored as a byte array (it will be CMS.AtoB decoded).- Overrides:
getInByteArrayin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The byte array or null on error.
-
set
-
getInInteger
Description copied from class:AuthTokenRetrieves the Integer value for name.- Overrides:
getInIntegerin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The Integer or null on error.
-
set
Description copied from class:AuthTokenStores the BigInteger array with the associated key. -
getInBigIntegerArray
Description copied from class:AuthTokenRetrieves the BigInteger array value for name.- Overrides:
getInBigIntegerArrayin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The value or null on error.
-
set
-
getInDate
-
set
-
getInStringArray
Description copied from class:AuthTokenRetrieves the String array value for name.- Overrides:
getInStringArrayin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The value or null on error.
-
set
-
getInCert
-
set
Description copied from class:AuthTokenStores the CertificateExtensions with the associated key. -
getInCertExts
Description copied from class:AuthTokenRetrieves the CertificateExtensions value for name.- Overrides:
getInCertExtsin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The value.
-
set
Description copied from class:AuthTokenStores the Certificates with the associated key. -
getInCertificates
Description copied from class:AuthTokenRetrieves the Certificates value for name.- Overrides:
getInCertificatesin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The value.
-
set
-
getInByteArrayArray
Description copied from class:AuthTokenRetrieves the byte[][] value for name.- Overrides:
getInByteArrayArrayin classAuthToken- Parameters:
k- The attribute name.- Returns:
- The value.
-