|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.client.ClientSecurityProperties
public class ClientSecurityProperties
| Field Summary | |
|---|---|
static String |
REGISTRY_CHECKACCESS
do we check access on the WSRF level? |
static String |
REGISTRY_CHECKACCESS_PDP
access control PDP class name (implementing de.fzj.uas.security.XacmlPDP) |
static String |
REGISTRY_CHECKACCESS_PDPCONFIG
configuration file for the PDP |
static String |
REGISTRY_SSL_CLIENTAUTH
property defining whether SSL is client authenticated |
static String |
REGISTRY_SSL_ENABLED
property defining whether SSL is enabled |
static String |
REGISTRY_SSL_KEYALIAS
property defining the alias of the key to use |
static String |
REGISTRY_SSL_KEYPASS
property defining the SSL keystore password |
static String |
REGISTRY_SSL_KEYSTORE
property defining the SSL keystore |
static String |
REGISTRY_SSL_KEYTYPE
property defining the SSL keystore type (e.g. |
static String |
REGISTRY_SSL_TRUSTPASS
property defining the SSL trust tore password |
static String |
REGISTRY_SSL_TRUSTSTORE
property defining the SSL trust store |
static String |
REGISTRY_SSL_TRUSTTYPE
property defining the SSL trust store type (e.g. |
| Constructor Summary | |
|---|---|
ClientSecurityProperties(Properties parent)
|
|
ClientSecurityProperties(Properties parent,
InputStream is)
|
|
ClientSecurityProperties(Properties parent,
Properties local)
|
|
ClientSecurityProperties(Properties parent,
String propertiesFileName)
|
|
| Method Summary | |
|---|---|
ClientSecurityProperties |
clone()
Makes a copy of these properties. |
protected String |
doGetProperty(String key)
return named property. |
boolean |
doHttpAuthn()
Returns true if HTTP BASIC Auth should be used. |
boolean |
doSignMessage()
Digital signature mechanism can be disabled with this method returning false. |
boolean |
doSSLAuthn()
Returns true if the client-side TLS authentication should be done. |
X509Certificate[] |
getCertificateChain()
the user's certificate chain. |
ClassLoader |
getClassLoader()
Get the classloader to be used e.g. |
Map<String,Object> |
getExtraSecurityTokens()
For outgoing calls, get extra security information. |
Properties |
getExtraSettings()
Returns additional settings which are used to set up the client call (e.g., HTTP client proxy settings or additional security handler settings) |
String |
getHttpPassword()
Returns HTTP BASIC Auth user's password. |
String |
getHttpUser()
Returns HTTP BASIC Auth user. |
String |
getInHandlerClassNames()
Returns the names of the security handler classes for incoming messages, separated by a single space. |
String |
getKeystore()
Returns keystore location. |
String |
getKeystoreAlias()
Returns key alias in keystore. |
String |
getKeystoreKeyPassword()
Returns key password in keystore. |
String |
getKeystorePassword()
Returns keystore password. |
String |
getKeystoreType()
Returns keystore type. |
String |
getOutHandlerClassNames()
Returns the names of the security handler classes for outbound messages, separated by a single space. |
PrivateKey |
getPrivateKey()
returns the private key entry identified by getKeystoreAlias() from the keystore |
X509Certificate |
getPublicKey()
the user's certificate, equal to the first entry in the certificate chain (this is equivalent to calling getCertificateChain()[0]) |
SSLContext |
getSSLContext()
This method can return initialized SSLContext or null. |
String |
getTruststore()
Returns truststore location. |
String |
getTruststorePassword()
Returns truststore password. |
String |
getTruststoreType()
Returns truststore type. |
boolean |
isSslEnabled()
returns true if SSL mode is enabled. SSL can be enabled by setting a property "unicore.wsrflite.ssl" to "true" in the wsrflite.xml file or by defining a system property |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String REGISTRY_SSL_ENABLED
public static final String REGISTRY_SSL_CLIENTAUTH
public static final String REGISTRY_SSL_KEYSTORE
public static final String REGISTRY_SSL_KEYPASS
public static final String REGISTRY_SSL_KEYTYPE
public static final String REGISTRY_SSL_KEYALIAS
public static final String REGISTRY_SSL_TRUSTSTORE
public static final String REGISTRY_SSL_TRUSTPASS
public static final String REGISTRY_SSL_TRUSTTYPE
public static final String REGISTRY_CHECKACCESS
public static final String REGISTRY_CHECKACCESS_PDP
de.fzj.uas.security.XacmlPDP)
public static final String REGISTRY_CHECKACCESS_PDPCONFIG
| Constructor Detail |
|---|
public ClientSecurityProperties(Properties parent,
Properties local)
throws UnrecoverableKeyException,
KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
IOException
UnrecoverableKeyException
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
public ClientSecurityProperties(Properties parent)
throws UnrecoverableKeyException,
KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
IOException
UnrecoverableKeyException
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
public ClientSecurityProperties(Properties parent,
InputStream is)
throws UnrecoverableKeyException,
KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
IOException
UnrecoverableKeyException
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
public ClientSecurityProperties(Properties parent,
String propertiesFileName)
throws IOException,
UnrecoverableKeyException,
KeyStoreException,
NoSuchAlgorithmException,
CertificateException
IOException
UnrecoverableKeyException
KeyStoreException
NoSuchAlgorithmException
CertificateException| Method Detail |
|---|
public ClientSecurityProperties clone()
IClientProperties
clone in interface IAuthenticationConfigurationclone in interface IClientPropertiesclone in interface ISecurityConfigurationclone in class Objectprotected String doGetProperty(String key)
public boolean isSslEnabled()
isSslEnabled in interface IClientPropertiespublic boolean doSSLAuthn()
IAuthenticationConfigurationISecurityConfiguration) getKeystore* methods are
not used at all.
doSSLAuthn in interface IAuthenticationConfigurationpublic X509Certificate[] getCertificateChain()
IClientProperties
getCertificateChain in interface IClientPropertiespublic X509Certificate getPublicKey()
IClientProperties
getPublicKey in interface IClientPropertiespublic PrivateKey getPrivateKey()
getPrivateKey in interface IClientPropertiespublic String toString()
toString in class Objectpublic boolean doSignMessage()
IClientProperties
doSignMessage in interface IClientPropertiespublic boolean doHttpAuthn()
IAuthenticationConfiguration
doHttpAuthn in interface IAuthenticationConfigurationpublic String getHttpUser()
IAuthenticationConfiguration
getHttpUser in interface IAuthenticationConfigurationpublic String getHttpPassword()
IAuthenticationConfiguration
getHttpPassword in interface IAuthenticationConfigurationpublic SSLContext getSSLContext()
IAuthenticationConfigurationSSLContext or null.
If null is returned then SSLContext will be created by this library
itself using the data from the other methods defined in this interface.
If this method returns non-null value then most of the methods in this
interface are not used (only HTTP related are still used).
getSSLContext in interface IAuthenticationConfigurationpublic String getKeystorePassword()
ISecurityConfiguration
getKeystorePassword in interface ISecurityConfigurationpublic String getKeystoreKeyPassword()
ISecurityConfiguration
getKeystoreKeyPassword in interface ISecurityConfigurationpublic String getKeystore()
ISecurityConfiguration
getKeystore in interface ISecurityConfigurationpublic String getKeystoreType()
ISecurityConfiguration
getKeystoreType in interface ISecurityConfigurationpublic String getKeystoreAlias()
ISecurityConfiguration
getKeystoreAlias in interface ISecurityConfigurationpublic String getTruststore()
IAuthenticationConfiguration
getTruststore in interface IAuthenticationConfigurationpublic String getTruststoreType()
IAuthenticationConfiguration
getTruststoreType in interface IAuthenticationConfigurationpublic String getTruststorePassword()
IAuthenticationConfiguration
getTruststorePassword in interface IAuthenticationConfigurationpublic Properties getExtraSettings()
IClientProperties
getExtraSettings in interface IClientPropertiesHttpUtils,
XFireClientFactorypublic String getOutHandlerClassNames()
IClientProperties
getOutHandlerClassNames in interface IClientPropertiespublic String getInHandlerClassNames()
IClientProperties
getInHandlerClassNames in interface IClientPropertiespublic ClassLoader getClassLoader()
IClientProperties
getClassLoader in interface IClientPropertiespublic Map<String,Object> getExtraSecurityTokens()
IClientProperties
getExtraSecurityTokens in interface IClientProperties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||