public class ExternalAuthToken extends java.lang.Object implements IAuthToken
Modifier and Type | Field and Description |
---|---|
protected org.apache.catalina.realm.GenericPrincipal |
principal |
GROUP, GROUPS, 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 and Description |
---|
ExternalAuthToken(org.apache.catalina.realm.GenericPrincipal principal) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String k)
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 k)
Retrieves the BigInteger array value for name.
|
byte[] |
getInByteArray(java.lang.String k)
Retrieves the byte array value for name.
|
byte[][] |
getInByteArrayArray(java.lang.String k)
Retrieves the byte[][] value for name.
|
org.mozilla.jss.netscape.security.x509.X509CertImpl |
getInCert(java.lang.String k)
Retrieves the X509CertImpl value for name.
|
org.mozilla.jss.netscape.security.x509.CertificateExtensions |
getInCertExts(java.lang.String k)
Retrieves the CertificateExtensions value for name.
|
Certificates |
getInCertificates(java.lang.String k)
Retrieves the Certificates value for name.
|
java.util.Date |
getInDate(java.lang.String k)
Retrieves the Date value for name.
|
java.lang.Integer |
getInInteger(java.lang.String k)
Retrieves the Integer value for name.
|
java.lang.String |
getInString(java.lang.String k)
Gets an attribute value.
|
java.lang.String[] |
getInStringArray(java.lang.String k)
Retrieves the String array value for name.
|
java.security.Principal |
getPrincipal() |
boolean |
set(java.lang.String k,
java.math.BigInteger[] v)
Stores the BigInteger array with the associated key.
|
boolean |
set(java.lang.String k,
byte[] v)
Stores the byte array with the associated key.
|
boolean |
set(java.lang.String k,
byte[][] v)
Stores the byte[][] with the associated key.
|
boolean |
set(java.lang.String k,
org.mozilla.jss.netscape.security.x509.CertificateExtensions v)
Stores the CertificateExtensions with the associated key.
|
boolean |
set(java.lang.String k,
Certificates v)
Stores the Certificates with the associated key.
|
boolean |
set(java.lang.String k,
java.util.Date v)
Stores the Date with the associated key.
|
boolean |
set(java.lang.String k,
java.lang.Integer v)
Stores the Integer with the associated key.
|
boolean |
set(java.lang.String k,
java.lang.String v)
Sets an attribute value within this AttrSet.
|
boolean |
set(java.lang.String k,
java.lang.String[] v)
Stores the String array with the associated key.
|
boolean |
set(java.lang.String k,
org.mozilla.jss.netscape.security.x509.X509CertImpl v)
Stores the X509CertImpl with the associated key.
|
public ExternalAuthToken(org.apache.catalina.realm.GenericPrincipal principal)
public java.security.Principal getPrincipal()
public java.util.Enumeration<java.lang.String> getElements()
IAuthToken
getElements
in interface IAuthToken
public java.lang.Object get(java.lang.String k)
IAuthToken
get
in interface IAuthToken
k
- the name of the attribute to return.public boolean set(java.lang.String k, java.lang.String v)
IAuthToken
set
in interface IAuthToken
k
- the name of the attributev
- the attribute object.public java.lang.String getInString(java.lang.String k)
IAuthToken
getInString
in interface IAuthToken
k
- the name of the attribute to return.public boolean set(java.lang.String k, byte[] v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic byte[] getInByteArray(java.lang.String k)
IAuthToken
getInByteArray
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, java.lang.Integer v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic java.lang.Integer getInInteger(java.lang.String k)
IAuthToken
getInInteger
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, java.math.BigInteger[] v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic java.math.BigInteger[] getInBigIntegerArray(java.lang.String k)
IAuthToken
getInBigIntegerArray
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, java.util.Date v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic java.util.Date getInDate(java.lang.String k)
IAuthToken
getInDate
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, java.lang.String[] v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic java.lang.String[] getInStringArray(java.lang.String k)
IAuthToken
getInStringArray
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, org.mozilla.jss.netscape.security.x509.X509CertImpl v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic org.mozilla.jss.netscape.security.x509.X509CertImpl getInCert(java.lang.String k)
IAuthToken
getInCert
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, org.mozilla.jss.netscape.security.x509.CertificateExtensions v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic org.mozilla.jss.netscape.security.x509.CertificateExtensions getInCertExts(java.lang.String k)
IAuthToken
getInCertExts
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, Certificates v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic Certificates getInCertificates(java.lang.String k)
IAuthToken
getInCertificates
in interface IAuthToken
k
- The attribute name.public boolean set(java.lang.String k, byte[][] v)
IAuthToken
set
in interface IAuthToken
k
- The attribute name.v
- The value to storepublic byte[][] getInByteArrayArray(java.lang.String k)
IAuthToken
getInByteArrayArray
in interface IAuthToken
k
- The attribute name.