de.fzj.unicore.wsrflite.security
Class DefaultSecurityProperties

java.lang.Object
  extended by de.fzj.unicore.wsrflite.security.DefaultSecurityProperties
All Implemented Interfaces:
ISecurityProperties, Cloneable
Direct Known Subclasses:
KernelSecurityProperties, SecurityProperties

public class DefaultSecurityProperties
extends Object
implements ISecurityProperties

provide some default security settings (SSL and WS-Security are off)

Author:
schuller

Field Summary
 
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
 
Constructor Summary
DefaultSecurityProperties()
           
 
Method Summary
 ISecurityProperties clone()
           
protected  String doGetProperty(String key)
          Returns a system property.
 String getKeystore()
          retrieve the keystore location
 String getKeystoreAlias()
          retrieve alias to use
 String getKeystorePassword()
          retrieve the keystore password
 String getKeystoreType()
          retrieve the keystore type
 String getTruststore()
          retrieve the keystore location
 String getTruststorePassword()
          retrieve the keystore password
 String getTruststoreType()
          retrieve the keystore type
 boolean isSslClientAuthenticated()
          returns true if SSL client authentication mode is enabled.
 boolean isSslEnabled()
          returns true if SSL mode is enabled.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultSecurityProperties

public DefaultSecurityProperties()
Method Detail

doGetProperty

protected String doGetProperty(String key)
Returns a system property. Override this in subclasses

Parameters:
key -
Returns:
property value

isSslEnabled

public boolean isSslEnabled()
Description copied from interface: ISecurityProperties
returns true if SSL mode is enabled.
SSL can be enabled by setting a property "unicore.wsrflite.ssl" to "true" in the service.xml file or by defining a system property

Specified by:
isSslEnabled in interface ISecurityProperties
Returns:

isSslClientAuthenticated

public boolean isSslClientAuthenticated()
Description copied from interface: ISecurityProperties
returns true if SSL client authentication mode is enabled.
can be enabled by setting a property "unicore.wsrflite.ssl.clientauth" to "true" in the service.xml file or by defining a system property

Specified by:
isSslClientAuthenticated in interface ISecurityProperties
Returns:

getKeystore

public String getKeystore()
Description copied from interface: ISecurityProperties
retrieve the keystore location

Specified by:
getKeystore in interface ISecurityProperties
Returns:

getKeystoreType

public String getKeystoreType()
Description copied from interface: ISecurityProperties
retrieve the keystore type

Specified by:
getKeystoreType in interface ISecurityProperties
Returns:

getKeystorePassword

public String getKeystorePassword()
Description copied from interface: ISecurityProperties
retrieve the keystore password

Specified by:
getKeystorePassword in interface ISecurityProperties
Returns:

getKeystoreAlias

public String getKeystoreAlias()
Description copied from interface: ISecurityProperties
retrieve alias to use

Specified by:
getKeystoreAlias in interface ISecurityProperties
Returns:

getTruststore

public String getTruststore()
Description copied from interface: ISecurityProperties
retrieve the keystore location

Specified by:
getTruststore in interface ISecurityProperties
Returns:

getTruststoreType

public String getTruststoreType()
Description copied from interface: ISecurityProperties
retrieve the keystore type

Specified by:
getTruststoreType in interface ISecurityProperties
Returns:

getTruststorePassword

public String getTruststorePassword()
Description copied from interface: ISecurityProperties
retrieve the keystore password

Specified by:
getTruststorePassword in interface ISecurityProperties
Returns:

toString

public String toString()
Overrides:
toString in class Object

clone

public ISecurityProperties clone()
                          throws CloneNotSupportedException
Specified by:
clone in interface ISecurityProperties
Overrides:
clone in class Object
Returns:
Throws:
CloneNotSupportedException


Copyright © 2010. All Rights Reserved.