|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.certsrv.authentication.AuthToken
public class AuthToken
Authentication token returned by Authentication Managers. Upon return, it contains authentication/identification information as well as information retrieved from the database where the authentication was done against. Each authentication manager has its own list of such information. See individual authenticaiton manager for more details.
Field Summary | |
---|---|
protected java.util.Hashtable |
mAttrs
|
static java.lang.String |
TOKEN_AUTHMGR_IMPL_NAME
Plugin name of the authentication manager that created the AuthToken as a string. |
static java.lang.String |
TOKEN_AUTHMGR_INST_NAME
Name of the authentication manager that created the AuthToken as a string. |
static java.lang.String |
TOKEN_AUTHTIME
Time of authentication as a java.util.Date |
static java.lang.String |
TOKEN_CERT
Certificate to be renewed |
static java.lang.String |
TOKEN_CERT_EXTENSIONS
|
static java.lang.String |
TOKEN_CERT_NOTAFTER
|
static java.lang.String |
TOKEN_CERT_NOTBEFORE
|
static java.lang.String |
TOKEN_CERT_SERIALNUM
|
static java.lang.String |
TOKEN_CERT_SUBJECT
|
static java.lang.String |
TOKEN_CERT_TO_REVOKE
|
Fields inherited from interface com.netscape.certsrv.authentication.IAuthToken |
---|
USER_ID |
Constructor Summary | |
---|---|
AuthToken(IAuthManager authMgr)
Constructs an instance of a authentication token. |
Method Summary | |
---|---|
void |
delete(java.lang.String attrName)
Removes an attribute in the AuthToken |
java.lang.String |
getAuthManagerImplName()
Gets the plugin name of the authentication manager that created this token. |
java.lang.String |
getAuthManagerInstName()
Gets the name of the authentication manager instance that created this token. |
java.util.Date |
getAuthTime()
Gets the time of authentication. |
java.util.Enumeration |
getElements()
Enumerate all attribute names in the AuthToken. |
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. |
netscape.security.x509.X509CertImpl |
getInCert(java.lang.String name)
Retrieves the X509CertImpl value for name. |
netscape.security.x509.CertificateExtensions |
getInCertExts(java.lang.String name)
Retrieves the CertificateExtensions value for name. |
Certificates |
getInCertificates(java.lang.String name)
Retrieves the Certificates value for name. |
java.util.Date |
getInDate(java.lang.String name)
Retrieves the Date value for name. |
java.lang.Integer |
getInInteger(java.lang.String name)
Retrieves the Integer value for name. |
java.lang.String |
getInString(java.lang.String attrName)
Gets an attribute value. |
java.lang.String[] |
getInStringArray(java.lang.String name)
Retrieves the String array value for name. |
java.util.Enumeration |
getVals()
Enumerate all attribute values in the AuthToken. |
boolean |
set(java.lang.String name,
java.math.BigInteger[] value)
Stores the BigInteger array with the associated key. |
boolean |
set(java.lang.String name,
byte[] value)
Stores the byte array with the associated key. |
boolean |
set(java.lang.String name,
byte[][] value)
Stores the byte[][] with the associated key. |
boolean |
set(java.lang.String name,
netscape.security.x509.CertificateExtensions value)
Stores the CertificateExtensions with the associated key. |
boolean |
set(java.lang.String name,
Certificates value)
Stores the Certificates with the associated key. |
boolean |
set(java.lang.String name,
java.util.Date value)
Stores the Date with the associated key. |
boolean |
set(java.lang.String name,
java.lang.Integer value)
Stores the Integer with the associated key. |
boolean |
set(java.lang.String attrName,
java.lang.String value)
Sets an attribute value within this AttrSet. |
boolean |
set(java.lang.String name,
java.lang.String[] value)
Stores the String array with the associated key. |
boolean |
set(java.lang.String name,
netscape.security.x509.X509CertImpl value)
Stores the X509CertImpl with the associated key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable mAttrs
public static final java.lang.String TOKEN_CERT_SUBJECT
public static final java.lang.String TOKEN_CERT_NOTBEFORE
public static final java.lang.String TOKEN_CERT_NOTAFTER
public static final java.lang.String TOKEN_CERT_EXTENSIONS
public static final java.lang.String TOKEN_CERT_SERIALNUM
public static final java.lang.String TOKEN_CERT
public static final java.lang.String TOKEN_CERT_TO_REVOKE
public static final java.lang.String TOKEN_AUTHMGR_IMPL_NAME
public static final java.lang.String TOKEN_AUTHMGR_INST_NAME
public static final java.lang.String TOKEN_AUTHTIME
Constructor Detail |
---|
public AuthToken(IAuthManager authMgr)
"authMgrInstName" - The authentication manager instance name. "authMgrImplName" - The authentication manager plugin name. "authTime" - The - The time of authentication.
authMgr
- The authentication manager that created this Token.Method Detail |
---|
public java.lang.String getInString(java.lang.String attrName)
IAuthToken
getInString
in interface IAuthToken
attrName
- the name of the attribute to return.
public boolean set(java.lang.String attrName, java.lang.String value)
IAuthToken
set
in interface IAuthToken
attrName
- the name of the attributevalue
- the attribute object.
public void delete(java.lang.String attrName)
attrName
- The name of the attribute to remove.public java.util.Enumeration getElements()
getElements
in interface IAuthToken
public byte[] getInByteArray(java.lang.String name)
IAuthToken
getInByteArray
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, byte[] value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public java.lang.Integer getInInteger(java.lang.String name)
IAuthToken
getInInteger
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, java.lang.Integer value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public java.math.BigInteger[] getInBigIntegerArray(java.lang.String name)
IAuthToken
getInBigIntegerArray
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, java.math.BigInteger[] value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public java.util.Date getInDate(java.lang.String name)
IAuthToken
getInDate
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, java.util.Date value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public java.lang.String[] getInStringArray(java.lang.String name)
IAuthToken
getInStringArray
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, java.lang.String[] value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public netscape.security.x509.X509CertImpl getInCert(java.lang.String name)
IAuthToken
getInCert
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, netscape.security.x509.X509CertImpl value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public netscape.security.x509.CertificateExtensions getInCertExts(java.lang.String name)
IAuthToken
getInCertExts
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, netscape.security.x509.CertificateExtensions value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public Certificates getInCertificates(java.lang.String name)
IAuthToken
getInCertificates
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, Certificates value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public byte[][] getInByteArrayArray(java.lang.String name)
IAuthToken
getInByteArrayArray
in interface IAuthToken
name
- The attribute name.
public boolean set(java.lang.String name, byte[][] value)
IAuthToken
set
in interface IAuthToken
name
- The attribute name.value
- The value to store
public java.util.Enumeration getVals()
public java.lang.String getAuthManagerInstName()
public java.lang.String getAuthManagerImplName()
public java.util.Date getAuthTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |