|
||||||||||
| 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.SPIjava.security.AccessControlException
java.security.AccessControlException - never thrown by this implementationprotected java.lang.String[] getAcceptingProviders(ServiceEndpointContext serviceEndpointContext)
getAcceptingProviders in class WaspSecurity.SPIserviceEndpointContext - whatever instance you want or null
STRAR_0protected java.util.Properties modifyLookupProperties(java.util.Properties props)
modifyLookupProperties in class WaspSecurity.SPIprops - current lookup properties, can be null
props parameterprotected javax.security.auth.Subject getInvokerSubject()
null.
getInvokerSubject in class WaspSecurity.SPInullWaspSecurity.SPI.getInvokerFirstPrincipal(),
WaspSecurity.SPI.getInvokerPrincipals()
protected void setAuthorizationRequired(ServiceEndpointContext serviceEndpointContext,
boolean required)
throws java.security.NoSuchProviderException
setAuthorizationRequired in class WaspSecurity.SPIserviceEndpointContext - not usedrequired - not used
java.security.NoSuchProviderException - if current WSO2 SOA Enablement Server Security cannot control authorization settings
protected boolean isAuthorizationRequired(ServiceEndpointContext serviceEndpointContext)
throws java.security.NoSuchProviderException
isAuthorizationRequired in class WaspSecurity.SPIserviceEndpointContext - not used
NoSuchProviderException
java.security.NoSuchProviderException - if current WSO2 SOA Enablement Server Security cannot control authorization settings
protected 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.SPIserviceEndpointContext - not usedproviderNames - must be null or empty to silently return
java.security.NoSuchProviderException - current WSO2 SOA Enablement Server Security cannot control authorization settings
protected void setInitiatingProvider(ServiceEndpointContext serviceEndpointContext,
java.lang.String providerName)
throws java.security.NoSuchProviderException
null,
it silently returns, otherwise it throws NoSuchProviderException.
setInitiatingProvider in class WaspSecurity.SPIserviceEndpointContext - 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.SPIserviceEndpointContext - not usedcreds - not used
protected Credentials acquireClientCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String authenticationMechanism)
throws java.security.NoSuchProviderException
NoSuchProviderException.
acquireClientCredentials in class WaspSecurity.SPIuserName - not usedpassword - not usedauthenticationMechanism - not used
NoSuchProviderException
java.security.NoSuchProviderException - if current WSO2 SOA Enablement Server Security cannot create credentials
protected Credentials acquireServerCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String authenticationMechanism)
throws java.security.NoSuchProviderException
NoSuchProviderException.
acquireServerCredentials in class WaspSecurity.SPIuserName - 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.SPIserviceClient - not used
null
protected void setCredentials(ServiceClient serviceClient,
Credentials[] creds)
setCredentials in class WaspSecurity.SPIserviceClient - 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.SPIserviceClient - not usedproviderName - must be null to silently return
java.security.NoSuchProviderException - if current WSO2 SOA Enablement Server Security cannot control authorization settings
protected void setProviderProperties(ServiceClient serviceClient,
java.util.Map properties)
setProviderProperties in class WaspSecurity.SPIserviceClient - not usedproperties - not used
protected void setProviderProperties(ServiceEndpointContext serviceEndpointContext,
java.util.Map properties)
setProviderProperties in class WaspSecurity.SPIserviceEndpointContext - not usedproperties - not used
protected Configurable getProviderProperties(ServiceEndpointContext serviceEndpointContext,
java.lang.String providerName)
null.
getProviderProperties in class WaspSecurity.SPIserviceEndpointContext - not usedproviderName - not used
null
protected void setProviderProperties(ServiceEndpointContext serviceEndpointContext,
Configurable config,
java.lang.String providerName)
throws java.security.NoSuchProviderException
setProviderProperties in class WaspSecurity.SPIserviceEndpointContext - not usedconfig - not usedproviderName - not used
java.security.NoSuchProviderException - never thrown
protected Configurable getProviderProperties(ServiceClient serviceClient,
java.lang.String providerName)
WaspSecurity.SPIconfig 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.SPIserviceClient - service client, cannot be nullproviderName - name of the security provider to get the properties
Configurable instance
protected void setProviderProperties(ServiceClient serviceClient,
Configurable config,
java.lang.String providerName)
throws java.security.NoSuchProviderException
setProviderProperties in class WaspSecurity.SPIserviceClient - 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.SPIserverURL - 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.SPIserviceClient - not used
nullprotected java.lang.String getInitiatingProvider(ServiceEndpointContext serviceEndpointContext)
null.
getInitiatingProvider in class WaspSecurity.SPIserviceEndpointContext - not used
null
protected void checkPermission(java.security.Permission perm)
throws java.security.AccessControlException
checkPermission in class WaspSecurity.SPIperm - not used
java.security.AccessControlException - never thrown
protected java.lang.Class getProviderPropertiesIface(java.lang.String providerName)
throws java.security.NoSuchProviderException
getProviderPropertiesIface in class WaspSecurity.SPIproviderName - 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 | |||||||||