|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.wasp.WaspSecurity.SPI
org.idoox.wasp.WaspSecurity.WaspSecurityImpl
Default implementation of WaspSecurity SPI. No security is maintained by this class, this class is used if no security is installed.
Field Summary |
Fields inherited from class org.idoox.wasp.WaspSecurity.SPI |
STRAR_0 |
Constructor Summary | |
WaspSecurity.WaspSecurityImpl()
Unmodifiable empty map, this map can be safely reused and returned by extenders. |
Method Summary | |
protected Credentials |
acquireClientCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String authenticationMechanism)
Always throws NoSuchProviderException . |
protected Credentials |
acquireServerCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String authenticationMechanism)
Always throws NoSuchProviderException . |
protected void |
checkPermission(java.security.Permission perm)
Always silently returns. |
protected java.lang.String[] |
getAcceptingProviders(ServiceEndpointContext serviceEndpointContext)
Always returns an empty array. |
protected java.lang.String[] |
getAnRequirementsForEndpoint(java.lang.String serverURL,
java.lang.String serviceEndpointPath,
boolean isGetTransportMethod)
Always returns an empty array. |
protected Credentials[] |
getCredentials(ServiceClient serviceClient)
Always returns null . |
protected java.security.PermissionCollection |
getDefaultPrincipalPermissions()
Returns readonly java.security.Permissions with java.security.AllPermission . |
protected java.lang.String |
getInitiatingProvider(ServiceClient serviceClient)
Always returns null . |
protected java.lang.String |
getInitiatingProvider(ServiceEndpointContext serviceEndpointContext)
Always returns null . |
protected java.util.Map |
getInstalledSecurityInfo()
Returns unmodifiable Map with both WaspSecurity.AUTHENTICATION_SUPPORTED
and
WaspSecurity.AUTHORIZATION_SUPPORTED
set to "false" . |
protected javax.security.auth.Subject |
getInvokerSubject()
Always returns null . |
protected Configurable |
getProviderProperties(ServiceClient serviceClient,
java.lang.String providerName)
Returns properties of security providers that are determined by the given instance of Configurable. |
protected Configurable |
getProviderProperties(ServiceEndpointContext serviceEndpointContext,
java.lang.String providerName)
Always returns null . |
protected java.lang.Class |
getProviderPropertiesIface(java.lang.String providerName)
Returns configuration class of the given provider. |
protected boolean |
isAuthorizationRequired(ServiceEndpointContext serviceEndpointContext)
Always throws NoSuchProviderException. |
protected java.util.Properties |
modifyLookupProperties(java.util.Properties props)
Always returns the same properties as received. |
protected void |
resetCredentials()
Always silently returns. |
protected void |
setAcceptingProviders(ServiceEndpointContext serviceEndpointContext,
java.lang.String[] providerNames)
If the providersNames array is null or
empty, it silently returns, otherwise it throws NoSuchProviderException . |
protected void |
setAuthorizationRequired(ServiceEndpointContext serviceEndpointContext,
boolean required)
Always throws NoSuchProviderException. |
protected void |
setCredentials(ServiceClient serviceClient,
Credentials[] creds)
Always silently returns. |
protected void |
setCredentials(ServiceEndpointContext serviceEndpointContext,
Credentials[] creds)
Always silently returns. |
protected void |
setInitiatingProvider(ServiceClient serviceClient,
java.lang.String providerName)
If the providersName is null ,
it silently returns, otherwise it throws NoSuchProviderException. |
protected void |
setInitiatingProvider(ServiceEndpointContext serviceEndpointContext,
java.lang.String providerName)
If the providersName is null ,
it silently returns, otherwise it throws NoSuchProviderException . |
protected void |
setProviderProperties(ServiceClient serviceClient,
Configurable config,
java.lang.String providerName)
Silently returns. |
protected void |
setProviderProperties(ServiceClient serviceClient,
java.util.Map properties)
Always silently returns. |
protected void |
setProviderProperties(ServiceEndpointContext serviceEndpointContext,
Configurable config,
java.lang.String providerName)
Silently returns. |
protected void |
setProviderProperties(ServiceEndpointContext serviceEndpointContext,
java.util.Map properties)
Always silently returns. |
Methods inherited from class org.idoox.wasp.WaspSecurity.SPI |
getAnRequirementsForEndpoint, getInvokerFirstPrincipal, getInvokerPrincipals, isAppCredentialsSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WaspSecurity.WaspSecurityImpl()
Method Detail |
protected java.util.Map getInstalledSecurityInfo()
WaspSecurity.AUTHENTICATION_SUPPORTED
and
WaspSecurity.AUTHORIZATION_SUPPORTED
set to "false"
.
getInstalledSecurityInfo
in class WaspSecurity.SPI
protected java.security.PermissionCollection getDefaultPrincipalPermissions() throws java.security.AccessControlException
java.security.Permissions
with java.security.AllPermission
.
getDefaultPrincipalPermissions
in class WaspSecurity.SPI
java.security.AccessControlException
java.security.AccessControlException
- never thrown by this implementationprotected java.lang.String[] getAcceptingProviders(ServiceEndpointContext serviceEndpointContext)
getAcceptingProviders
in class WaspSecurity.SPI
serviceEndpointContext
- whatever instance you want or null
STRAR_0
protected java.util.Properties modifyLookupProperties(java.util.Properties props)
modifyLookupProperties
in class WaspSecurity.SPI
props
- current lookup properties, can be null
props
parameterprotected javax.security.auth.Subject getInvokerSubject()
null
.
getInvokerSubject
in class WaspSecurity.SPI
null
WaspSecurity.SPI.getInvokerFirstPrincipal()
,
WaspSecurity.SPI.getInvokerPrincipals()
protected void setAuthorizationRequired(ServiceEndpointContext serviceEndpointContext, boolean required) throws java.security.NoSuchProviderException
setAuthorizationRequired
in class WaspSecurity.SPI
serviceEndpointContext
- not usedrequired
- not used
java.security.NoSuchProviderException
- if current WSO2 SOA Enablement Server Security cannot control authorization settingsprotected boolean isAuthorizationRequired(ServiceEndpointContext serviceEndpointContext) throws java.security.NoSuchProviderException
isAuthorizationRequired
in class WaspSecurity.SPI
serviceEndpointContext
- not used
NoSuchProviderException
java.security.NoSuchProviderException
- if current WSO2 SOA Enablement Server Security cannot control authorization settingsprotected void setAcceptingProviders(ServiceEndpointContext serviceEndpointContext, java.lang.String[] providerNames) throws java.security.NoSuchProviderException
null
or
empty, it silently returns, otherwise it throws NoSuchProviderException
.
setAcceptingProviders
in class WaspSecurity.SPI
serviceEndpointContext
- not usedproviderNames
- must be null
or empty to silently return
java.security.NoSuchProviderException
- current WSO2 SOA Enablement Server Security cannot control authorization settingsprotected void setInitiatingProvider(ServiceEndpointContext serviceEndpointContext, java.lang.String providerName) throws java.security.NoSuchProviderException
null
,
it silently returns, otherwise it throws NoSuchProviderException
.
setInitiatingProvider
in class WaspSecurity.SPI
serviceEndpointContext
- not usedproviderName
- must be null
to silently return
java.security.NoSuchProviderException
- Current WSO2 SOA Enablement Server Security cannot control authorization settings!protected void setCredentials(ServiceEndpointContext serviceEndpointContext, Credentials[] creds)
setCredentials
in class WaspSecurity.SPI
serviceEndpointContext
- not usedcreds
- not usedprotected Credentials acquireClientCredentials(java.lang.String userName, java.lang.String password, java.lang.String authenticationMechanism) throws java.security.NoSuchProviderException
NoSuchProviderException
.
acquireClientCredentials
in class WaspSecurity.SPI
userName
- not usedpassword
- not usedauthenticationMechanism
- not used
NoSuchProviderException
java.security.NoSuchProviderException
- if current WSO2 SOA Enablement Server Security cannot create credentialsprotected Credentials acquireServerCredentials(java.lang.String userName, java.lang.String password, java.lang.String authenticationMechanism) throws java.security.NoSuchProviderException
NoSuchProviderException
.
acquireServerCredentials
in class WaspSecurity.SPI
userName
- not usedpassword
- not usedauthenticationMechanism
- not used
NoSuchProviderException
java.security.NoSuchProviderException
- if current WSO2 SOA Enablement Server Security cannot create credentialsprotected Credentials[] getCredentials(ServiceClient serviceClient)
null
.
getCredentials
in class WaspSecurity.SPI
serviceClient
- not used
null
protected void setCredentials(ServiceClient serviceClient, Credentials[] creds)
setCredentials
in class WaspSecurity.SPI
serviceClient
- not usedcreds
- not usedWaspSecurity.SPI.setInitiatingProvider(ServiceClient,String)
protected void setInitiatingProvider(ServiceClient serviceClient, java.lang.String providerName) throws java.security.NoSuchProviderException
null
,
it silently returns, otherwise it throws NoSuchProviderException.
setInitiatingProvider
in class WaspSecurity.SPI
serviceClient
- not usedproviderName
- must be null
to silently return
java.security.NoSuchProviderException
- if current WSO2 SOA Enablement Server Security cannot control authorization settingsprotected void setProviderProperties(ServiceClient serviceClient, java.util.Map properties)
setProviderProperties
in class WaspSecurity.SPI
serviceClient
- not usedproperties
- not usedprotected void setProviderProperties(ServiceEndpointContext serviceEndpointContext, java.util.Map properties)
setProviderProperties
in class WaspSecurity.SPI
serviceEndpointContext
- not usedproperties
- not usedprotected Configurable getProviderProperties(ServiceEndpointContext serviceEndpointContext, java.lang.String providerName)
null
.
getProviderProperties
in class WaspSecurity.SPI
serviceEndpointContext
- not usedproviderName
- not used
null
protected void setProviderProperties(ServiceEndpointContext serviceEndpointContext, Configurable config, java.lang.String providerName) throws java.security.NoSuchProviderException
setProviderProperties
in class WaspSecurity.SPI
serviceEndpointContext
- not usedconfig
- not usedproviderName
- not used
java.security.NoSuchProviderException
- never thrownprotected Configurable getProviderProperties(ServiceClient serviceClient, java.lang.String providerName)
WaspSecurity.SPI
config
object is then narrowed to corresponding
configuration interface.
This method is usually used for configuration, integration,... In most cases, users
needn't to use this method.
getProviderProperties
in class WaspSecurity.SPI
serviceClient
- service client, cannot be null
providerName
- name of the security provider to get the properties
Configurable
instanceprotected void setProviderProperties(ServiceClient serviceClient, Configurable config, java.lang.String providerName) throws java.security.NoSuchProviderException
setProviderProperties
in class WaspSecurity.SPI
serviceClient
- not usedconfig
- not usedproviderName
- not used
java.security.NoSuchProviderException
- never thrownprotected void resetCredentials()
resetCredentials
in class WaspSecurity.SPI
protected java.lang.String[] getAnRequirementsForEndpoint(java.lang.String serverURL, java.lang.String serviceEndpointPath, boolean isGetTransportMethod) throws WebServiceLookupException
getAnRequirementsForEndpoint
in class WaspSecurity.SPI
serverURL
- not usedserviceEndpointPath
- not usedisGetTransportMethod
- not used
STRAR_0
WebServiceLookupException
- unable to lookup the service providing endpoint security informationprotected java.lang.String getInitiatingProvider(ServiceClient serviceClient)
null
.
getInitiatingProvider
in class WaspSecurity.SPI
serviceClient
- not used
null
protected java.lang.String getInitiatingProvider(ServiceEndpointContext serviceEndpointContext)
null
.
getInitiatingProvider
in class WaspSecurity.SPI
serviceEndpointContext
- not used
null
protected void checkPermission(java.security.Permission perm) throws java.security.AccessControlException
checkPermission
in class WaspSecurity.SPI
perm
- not used
java.security.AccessControlException
- never thrownprotected java.lang.Class getProviderPropertiesIface(java.lang.String providerName) throws java.security.NoSuchProviderException
getProviderPropertiesIface
in class WaspSecurity.SPI
providerName
- a given provider name
java.security.NoSuchProviderException
- never thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |