|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.dsr.security.SecurityTokens
public class SecurityTokens
A set of security tokens with authentication information: Unicore consignor and user are hold here. Also trust delegation tokens and digital signature status are kept here. The additional data can be stored in a context map. Some keys of objects that can be found in the context are defined here too (e.g. HTTP BASIC Auth login and password).
| Field Summary | |
|---|---|
static String |
CTX_LOGIN_HTTP
Context key of the token (as found in Unicore6Tokens) with HTTP BASIC login data. |
static String |
CTX_SCOPE_KEY
Context key of String which denotes if the request is done as normal WS request. |
static String |
CTX_SOAP_ACTION
Context key of the SOAP action being invoked. |
static String |
KEY
Key for storing the security tokens in the message context. |
static String |
SCOPE_REQUEST
Standard value of SCOPE_KEY. |
| Constructor Summary | |
|---|---|
SecurityTokens()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object otherO)
Two sets of tokes are considered equal if their effective user names, consignor certs, delegation statuses and signature status are equal. |
CertPath |
getConsignor()
Retrieves the stored consignor as a certificate path. |
X509Certificate |
getConsignorCertificate()
Retrieves stored consignor as X509 certificate. |
Map<String,Object> |
getContext()
Returns a map with additional security related settings. |
SignatureStatus |
getMessageSignatureStatus()
Returns the status of the request's signature. |
CertPath |
getUser()
Returns user's certificates path. |
X509Certificate |
getUserCertificate()
Returns a user's X509 certificate. |
X500Principal |
getUserName()
Returns a user's DN. |
int |
hashCode()
|
boolean |
isConsignorTrusted()
Returns true if the Consignor is anyhow allowed to work on User's behalf, as set by the setConsignorTrusted method. |
boolean |
isTrustDelegationValidated()
Returns true iff the trust delegation attached is valid and issued by the User. |
void |
setConsignor(CertPath consignor)
Sets a consignor. |
void |
setConsignorTrusted(boolean consignorTrusted)
Sets the key value telling if the Consignor is allowed to work on the Users behalf. |
void |
setMessageSignatureStatus(SignatureStatus status)
Sets a status of the request's signature. |
void |
setTrustDelegationValidated(boolean validTrustDelegation)
Sets the attached trust delegation general validation status. |
void |
setUser(CertPath user)
Sets user identity in terms of certificates. |
void |
setUserName(X500Principal userName)
Sets user identity in terms of DN. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY
public static final String CTX_LOGIN_HTTP
HTTPAuthNTokens.
public static final String CTX_SOAP_ACTION
public static final String CTX_SCOPE_KEY
public static final String SCOPE_REQUEST
| Constructor Detail |
|---|
public SecurityTokens()
| Method Detail |
|---|
public void setConsignor(CertPath consignor)
consignor - public CertPath getConsignor()
public X509Certificate getConsignorCertificate()
public void setUser(CertPath user)
user - public CertPath getUser()
public void setUserName(X500Principal userName)
Note that calling this method will clear user's certificate if it was stored before with setUser()!
userName - public X509Certificate getUserCertificate()
public X500Principal getUserName()
public String toString()
toString in class Objectpublic Map<String,Object> getContext()
public SignatureStatus getMessageSignatureStatus()
public void setMessageSignatureStatus(SignatureStatus status)
status - public boolean isConsignorTrusted()
public void setConsignorTrusted(boolean consignorTrusted)
public boolean isTrustDelegationValidated()
public void setTrustDelegationValidated(boolean validTrustDelegation)
public boolean equals(Object otherO)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||