|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUASSecurityProperties
UNICORE 6 security properties
This interface defines a number of property keys for controlling
the behaviour of the security subsystem.
Also, security properties are used for configuring security handlers.
They contain a number of methods related to the various entities involved
in making an outgoing Grid call, and to security level and trust delegation.
UASSecurityProperties,
TDOutHandler,
DSigParseInHandler| Field Summary | |
|---|---|
static java.lang.String |
UAS_AUTHORISER
Deprecated. - see AttributeSourceFactory for the new way of configuring attribute sources |
static java.lang.String |
UAS_AUTHORISER_PROXY_SUPPORT
set to "true" to enable proxy certificate support, i.e. proper handling of the proxy DNs (does NOT mean that proxies can be used for the SSL connection to the UNICORE/X container) |
static java.lang.String |
UAS_CHECK_CONSIGNOR_SIGNATURE
do we check if the consignor assertion is signed? |
static java.lang.String |
UAS_CHECKACCESS
do we check access on the WSRF level? |
static java.lang.String |
UAS_CHECKACCESS_PDP
access control PDP class name (implementing de.fzj.uas.security.XacmlPDP) |
static java.lang.String |
UAS_CHECKACCESS_PDPCONFIG
configuration file for the PDP |
static java.lang.String |
UAS_GATEWAY_ALIAS
for stricter security, define which certificate from the truststore will be used to verify gateway consignor assertions |
static java.lang.String |
UAS_INHANDLER_NAME
for CLIENT use: space-separated names of any extra UAS incoming security handler classes |
static java.lang.String |
UAS_OUTHANDLER_NAME
for CLIENT use: space separated name(s) of any extra UAS outbound security handler class(es) |
static java.lang.String |
UAS_REQUIRE_SIGNATURES
do we require signatures on certain messages |
| Fields inherited from interface de.fzj.unicore.wsrflite.security.ISecurityProperties |
|---|
WSRF_SSL, WSRF_SSL_CLIENTAUTH, WSRF_SSL_KEYALIAS, WSRF_SSL_KEYPASS, WSRF_SSL_KEYSTORE, WSRF_SSL_KEYTYPE, WSRF_SSL_TRUSTPASS, WSRF_SSL_TRUSTSTORE, WSRF_SSL_TRUSTTYPE |
| Method Summary | |
|---|---|
IUASSecurityProperties |
clone()
make a copy of these properties |
boolean |
doSignMessage()
for outgoing calls, should the message be signed? |
java.security.cert.X509Certificate[] |
getCertChain()
the full X509 certificate chain of the user |
java.lang.ClassLoader |
getClassLoader()
get the classloader to be used e.g. for dynamically loading security handlers |
java.util.Map<java.lang.String,java.lang.Object> |
getExtraSecurityTokens()
for outgoing calls, get extra security information |
java.security.cert.X509Certificate |
getGatewayCertificate()
get the certificate of the gateway, or null if this is not
configured (using the UAS_GATEWAY_ALIAS property) |
java.lang.String |
getInHandlerClassName()
returns the name of the security handler class for incoming messages |
java.lang.String |
getOutHandlerClassName()
returns the name of the security handler class for outbound messages |
java.security.PrivateKey |
getPrivateKey()
private key for signing messages |
java.lang.String |
getProperty(java.lang.String key)
get a property |
java.security.cert.X509Certificate |
getPublicKey()
the X509 public key identified by the specified alias |
javax.security.auth.x500.X500Principal |
getReceiver()
for client calls that need to issue trust delegations, return the X500Principal of the receiver |
java.lang.String |
getRequestedUser()
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestedUserAttributes()
Deprecated. |
java.util.Map<java.lang.String,java.lang.String[]> |
getRequestedUserAttributes2()
For outgoing calls, get extra security information This will return a modifyable map, never null. |
java.util.List<eu.unicore.security.etd.TrustDelegation> |
getTrustDelegationTokens()
for outgoing calls, get trust delegations to be passed on or extended |
boolean |
isTrustDelegationEnabled()
for outgoing calls, will a trust assertion be generated? |
void |
setAddTrustDelegation(boolean value)
select whether trust delegation is enabled for outgoing messages TODO rename to issueTrustDelegation(boolean value) |
void |
setClassLoader(java.lang.ClassLoader classLoader)
set the classloader to be used e.g. for dynamically loading security handlers |
void |
setExtraSecurityTokens(java.util.Map<java.lang.String,java.lang.Object> tokens)
set extra security tokens to be used in outgoing calls |
void |
setProperty(java.lang.String key,
java.lang.String value)
set a property |
void |
setReceiver(javax.security.auth.x500.X500Principal receiver)
for client calls that need to issue trust delegations, set the X500Principal of the receiver |
void |
setRequestedUser(java.lang.String requestedUserDN)
Sets the user under whose identity you want the request to be invoked. |
void |
setSignMessage(boolean what)
select whether the outgoing message should be signed |
| Methods inherited from interface de.fzj.unicore.wsrflite.security.ISecurityProperties |
|---|
getKeystore, getKeystoreAlias, getKeystorePassword, getKeystoreType, getTruststore, getTruststorePassword, getTruststoreType, isSslClientAuthenticated, isSslEnabled |
| Field Detail |
|---|
static final java.lang.String UAS_AUTHORISER
AttributeSourceFactory for the new way of configuring attribute sourcesde.fzj.uas.security.IAttributeSource)
static final java.lang.String UAS_AUTHORISER_PROXY_SUPPORT
static final java.lang.String UAS_CHECKACCESS
static final java.lang.String UAS_CHECKACCESS_PDP
de.fzj.uas.security.XacmlPDP)
static final java.lang.String UAS_CHECKACCESS_PDPCONFIG
static final java.lang.String UAS_OUTHANDLER_NAME
static final java.lang.String UAS_INHANDLER_NAME
static final java.lang.String UAS_CHECK_CONSIGNOR_SIGNATURE
static final java.lang.String UAS_REQUIRE_SIGNATURES
static final java.lang.String UAS_GATEWAY_ALIAS
| Method Detail |
|---|
IUASSecurityProperties clone()
throws java.lang.CloneNotSupportedException
clone in interface de.fzj.unicore.wsrflite.security.ISecurityPropertiesjava.lang.CloneNotSupportedException
void setProperty(java.lang.String key,
java.lang.String value)
key - value - java.lang.String getProperty(java.lang.String key)
key - java.lang.String getOutHandlerClassName()
java.lang.String getInHandlerClassName()
java.security.cert.X509Certificate getPublicKey()
java.security.cert.X509Certificate[] getCertChain()
java.security.PrivateKey getPrivateKey()
javax.security.auth.x500.X500Principal getReceiver()
X500Principal of the receiver
void setReceiver(javax.security.auth.x500.X500Principal receiver)
X500Principal of the receiver
boolean doSignMessage()
void setSignMessage(boolean what)
what - boolean isTrustDelegationEnabled()
void setAddTrustDelegation(boolean value)
void setRequestedUser(java.lang.String requestedUserDN)
Note that if you don't use this method but add trust delegations then the requested user will be implicitly set to the initial issuer (custodian) of the ETD chain. This method it therefore useful when the client doesn't send ETD tokens but has anyway rights to invoke operations on the requestedUser behalf (i.e. because of possession of a trusted agent role in the XUUDB/UVOS).
requested - user's DNjava.lang.String getRequestedUser()
java.util.List<eu.unicore.security.etd.TrustDelegation> getTrustDelegationTokens()
java.security.cert.X509Certificate getGatewayCertificate()
null if this is not
configured (using the UAS_GATEWAY_ALIAS property)
java.util.Map<java.lang.String,java.lang.Object> getExtraSecurityTokens()
void setExtraSecurityTokens(java.util.Map<java.lang.String,java.lang.Object> tokens)
tokens - @Deprecated java.util.Map<java.lang.String,java.lang.String> getRequestedUserAttributes()
null.
To add an attribute request to a client call, do
sec.getRequestedUserAttributes().put("XLOGIN", "test");
java.util.Map<java.lang.String,java.lang.String[]> getRequestedUserAttributes2()
null.
To add an attribute request to a client call, do
sec.getRequestedUserAttributes().put("XLOGIN", "test");
void setClassLoader(java.lang.ClassLoader classLoader)
classLoader - - the classloader to usejava.lang.ClassLoader getClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||