Interface IAuthToken
-
- All Known Implementing Classes:
AuthToken,ExternalAuthToken
public interface IAuthTokenAuthToken interface.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGROUPstatic java.lang.StringGROUPSstatic java.lang.StringTOKEN_AUTHENTICATED_CERT_SUBJECTstatic java.lang.StringTOKEN_AUTHMGR_INST_NAMEName of the authentication manager that created the AuthToken as a string.static java.lang.StringTOKEN_AUTHTIMETime of authentication as a java.util.Datestatic java.lang.StringTOKEN_CERTCertificate to be renewedstatic java.lang.StringTOKEN_CERT_EXTENSIONSstatic java.lang.StringTOKEN_CERT_NOTAFTERstatic java.lang.StringTOKEN_CERT_NOTBEFOREstatic java.lang.StringTOKEN_CERT_SERIALNUMstatic java.lang.StringTOKEN_CERT_SUBJECTstatic java.lang.StringTOKEN_CERT_TO_REVOKEstatic java.lang.StringTOKEN_SHARED_TOKEN_AUTHENTICATED_CERT_SUBJECTstatic java.lang.StringUIDstatic java.lang.StringUSERConstant for userid.static java.lang.StringUSER_DNstatic java.lang.StringUSER_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectget(java.lang.String name)Gets an attribute value.java.util.Enumeration<java.lang.String>getElements()Returns an enumeration of the names of the attributes existing within this AttrSet.java.math.BigInteger[]getInBigIntegerArray(java.lang.String name)Retrieves the BigInteger array value for name.byte[]getInByteArray(java.lang.String name)Retrieves the byte array value for name.byte[][]getInByteArrayArray(java.lang.String name)Retrieves the byte[][] value for name.org.mozilla.jss.netscape.security.x509.X509CertImplgetInCert(java.lang.String name)Retrieves the X509CertImpl value for name.org.mozilla.jss.netscape.security.x509.CertificateExtensionsgetInCertExts(java.lang.String name)Retrieves the CertificateExtensions value for name.CertificatesgetInCertificates(java.lang.String name)Retrieves the Certificates value for name.java.util.DategetInDate(java.lang.String name)Retrieves the Date value for name.java.lang.IntegergetInInteger(java.lang.String name)Retrieves the Integer value for name.java.lang.StringgetInString(java.lang.String name)Gets an attribute value.java.lang.String[]getInStringArray(java.lang.String name)Retrieves the String array value for name.booleanset(java.lang.String name, byte[] value)Stores the byte array with the associated key.booleanset(java.lang.String name, byte[][] value)Stores the byte[][] with the associated key.booleanset(java.lang.String name, Certificates value)Stores the Certificates with the associated key.booleanset(java.lang.String name, java.lang.Integer value)Stores the Integer with the associated key.booleanset(java.lang.String name, java.lang.String value)Sets an attribute value within this AttrSet.booleanset(java.lang.String name, java.lang.String[] value)Stores the String array with the associated key.booleanset(java.lang.String name, java.math.BigInteger[] value)Stores the BigInteger array with the associated key.booleanset(java.lang.String name, java.util.Date value)Stores the Date with the associated key.booleanset(java.lang.String name, org.mozilla.jss.netscape.security.x509.CertificateExtensions value)Stores the CertificateExtensions with the associated key.booleanset(java.lang.String name, org.mozilla.jss.netscape.security.x509.X509CertImpl value)Stores the X509CertImpl with the associated key.
-
-
-
Field Detail
-
USER
static final java.lang.String USER
Constant for userid.- See Also:
- Constant Field Values
-
USER_DN
static final java.lang.String USER_DN
- See Also:
- Constant Field Values
-
USER_ID
static final java.lang.String USER_ID
- See Also:
- Constant Field Values
-
UID
static final java.lang.String UID
- See Also:
- Constant Field Values
-
GROUP
static final java.lang.String GROUP
- See Also:
- Constant Field Values
-
GROUPS
static final java.lang.String GROUPS
- See Also:
- Constant Field Values
-
TOKEN_CERT_SUBJECT
static final java.lang.String TOKEN_CERT_SUBJECT
- See Also:
- Constant Field Values
-
TOKEN_AUTHENTICATED_CERT_SUBJECT
static final java.lang.String TOKEN_AUTHENTICATED_CERT_SUBJECT
- See Also:
- Constant Field Values
-
TOKEN_SHARED_TOKEN_AUTHENTICATED_CERT_SUBJECT
static final java.lang.String TOKEN_SHARED_TOKEN_AUTHENTICATED_CERT_SUBJECT
- See Also:
- Constant Field Values
-
TOKEN_CERT_NOTBEFORE
static final java.lang.String TOKEN_CERT_NOTBEFORE
- See Also:
- Constant Field Values
-
TOKEN_CERT_NOTAFTER
static final java.lang.String TOKEN_CERT_NOTAFTER
- See Also:
- Constant Field Values
-
TOKEN_CERT_EXTENSIONS
static final java.lang.String TOKEN_CERT_EXTENSIONS
- See Also:
- Constant Field Values
-
TOKEN_CERT_SERIALNUM
static final java.lang.String TOKEN_CERT_SERIALNUM
- See Also:
- Constant Field Values
-
TOKEN_CERT
static final java.lang.String TOKEN_CERT
Certificate to be renewed- See Also:
- Constant Field Values
-
TOKEN_CERT_TO_REVOKE
static final java.lang.String TOKEN_CERT_TO_REVOKE
- See Also:
- Constant Field Values
-
TOKEN_AUTHMGR_INST_NAME
static final java.lang.String TOKEN_AUTHMGR_INST_NAME
Name of the authentication manager that created the AuthToken as a string.- See Also:
- Constant Field Values
-
TOKEN_AUTHTIME
static final java.lang.String TOKEN_AUTHTIME
Time of authentication as a java.util.Date- See Also:
- Constant Field Values
-
-
Method Detail
-
set
boolean set(java.lang.String name, java.lang.String value)Sets an attribute value within this AttrSet.- Parameters:
name- the name of the attributevalue- the attribute object.- Returns:
- false on an error
-
get
java.lang.Object get(java.lang.String name)
Gets an attribute value.- Parameters:
name- the name of the attribute to return.- Returns:
- the attribute value
- Throws:
EBaseException- on attribute handling errors.
-
getInString
java.lang.String getInString(java.lang.String name)
Gets an attribute value.- Parameters:
name- the name of the attribute to return.- Returns:
- the attribute value
- Throws:
EBaseException- on attribute handling errors.
-
getElements
java.util.Enumeration<java.lang.String> getElements()
Returns an enumeration of the names of the attributes existing within this AttrSet.- Returns:
- an enumeration of the attribute names.
-
getInByteArray
byte[] getInByteArray(java.lang.String name)
Retrieves the byte array value for name. The value should have been previously stored as a byte array (it will be CMS.AtoB decoded).- Parameters:
name- The attribute name.- Returns:
- The byte array or null on error.
-
set
boolean set(java.lang.String name, byte[] value)Stores the byte array with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on an error
-
getInInteger
java.lang.Integer getInInteger(java.lang.String name)
Retrieves the Integer value for name.- Parameters:
name- The attribute name.- Returns:
- The Integer or null on error.
-
set
boolean set(java.lang.String name, java.lang.Integer value)Stores the Integer with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on an error
-
getInBigIntegerArray
java.math.BigInteger[] getInBigIntegerArray(java.lang.String name)
Retrieves the BigInteger array value for name.- Parameters:
name- The attribute name.- Returns:
- The value or null on error.
-
set
boolean set(java.lang.String name, java.math.BigInteger[] value)Stores the BigInteger array with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on an error
-
getInDate
java.util.Date getInDate(java.lang.String name)
Retrieves the Date value for name.- Parameters:
name- The attribute name.- Returns:
- The value or null on error.
-
set
boolean set(java.lang.String name, java.util.Date value)Stores the Date with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on an error
-
getInStringArray
java.lang.String[] getInStringArray(java.lang.String name)
Retrieves the String array value for name.- Parameters:
name- The attribute name.- Returns:
- The value or null on error.
-
set
boolean set(java.lang.String name, java.lang.String[] value)Stores the String array with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- False on error.
-
getInCert
org.mozilla.jss.netscape.security.x509.X509CertImpl getInCert(java.lang.String name)
Retrieves the X509CertImpl value for name.- Parameters:
name- The attribute name.- Returns:
- The value or null on error.
-
set
boolean set(java.lang.String name, org.mozilla.jss.netscape.security.x509.X509CertImpl value)Stores the X509CertImpl with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on error
-
getInCertExts
org.mozilla.jss.netscape.security.x509.CertificateExtensions getInCertExts(java.lang.String name) throws java.io.IOExceptionRetrieves the CertificateExtensions value for name.- Parameters:
name- The attribute name.- Returns:
- The value.
- Throws:
java.io.IOException
-
set
boolean set(java.lang.String name, org.mozilla.jss.netscape.security.x509.CertificateExtensions value)Stores the CertificateExtensions with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on error
-
getInCertificates
Certificates getInCertificates(java.lang.String name) throws java.io.IOException, java.security.cert.CertificateException
Retrieves the Certificates value for name.- Parameters:
name- The attribute name.- Returns:
- The value.
- Throws:
java.io.IOExceptionjava.security.cert.CertificateException
-
set
boolean set(java.lang.String name, Certificates value)Stores the Certificates with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on error
-
getInByteArrayArray
byte[][] getInByteArrayArray(java.lang.String name) throws java.io.IOExceptionRetrieves the byte[][] value for name.- Parameters:
name- The attribute name.- Returns:
- The value.
- Throws:
java.io.IOException
-
set
boolean set(java.lang.String name, byte[][] value)Stores the byte[][] with the associated key.- Parameters:
name- The attribute name.value- The value to store- Returns:
- false on error
-
-