de.fzj.unicore.wsrflite.security
Class KernelSecurityProperties

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

public class KernelSecurityProperties
extends DefaultSecurityProperties

SecurityProperties that are taken from the Kernel properties


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
KernelSecurityProperties(Kernel k)
          builds SecurityProperties from the properties of the given Kernel
 
Method Summary
protected  String doGetProperty(String key)
          Returns a system property.
 boolean isSslClientAuthenticated()
          returns true if SSL mode is enabled.
 boolean isSslEnabled()
          returns true if SSL mode is enabled.
 
Methods inherited from class de.fzj.unicore.wsrflite.security.DefaultSecurityProperties
clone, getKeystore, getKeystoreAlias, getKeystorePassword, getKeystoreType, getTruststore, getTruststorePassword, getTruststoreType, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KernelSecurityProperties

public KernelSecurityProperties(Kernel k)
builds SecurityProperties from the properties of the given Kernel

Parameters:
k - the Kernel instace
Method Detail

doGetProperty

protected String doGetProperty(String key)
Description copied from class: DefaultSecurityProperties
Returns a system property. Override this in subclasses

Overrides:
doGetProperty in class DefaultSecurityProperties
Returns:
property value

isSslEnabled

public boolean isSslEnabled()
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
Overrides:
isSslEnabled in class DefaultSecurityProperties
Returns:

isSslClientAuthenticated

public boolean isSslClientAuthenticated()
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:
isSslClientAuthenticated in interface ISecurityProperties
Overrides:
isSslClientAuthenticated in class DefaultSecurityProperties
Returns:


Copyright © 2010. All Rights Reserved.