|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents component which is able manage security settings for specified service endpoint.
For specified service endpoint is possible to set security mechanisms,
automatic web service authentication, automatic authorization checks per web service method
and identity association.
Method Summary | |
void |
addAcceptingSecurityProvider(ServiceEndpoint serviceEndpoint,
java.lang.String providerName)
Add a name of the security providers which have to be activated for this service implementation for incoming requests. |
void |
addAcceptingSecurityProviders(ServiceEndpoint serviceEndpoint,
java.lang.String[] providerNames)
Adds array of names of the security providers which have to be activated for this service implementation for incoming requests. |
void |
addIdentityAssociation(ServiceEndpoint serviceEndpoint,
IdentityAssociationImpl identityAssociation)
Adds identity association for particular service endpoint. |
java.lang.String[] |
getAcceptingSecurityProviders(ServiceEndpoint serviceEndpoint)
Returns array of names of the security providers which have to be activated for this service implementation for incoming requests. |
org.w3c.dom.Element |
getEndpointPreferences(PrefsMetadata beanMetadata,
ServiceEndpoint endpoint)
Gets particular endpoint configuration as DOM. |
PrefsMetadata[] |
getEndpointPrefsMetadata()
Gets endpoint preferences metadatas. |
IdentityAssociationImpl[] |
getIdentityAssociations(ServiceEndpoint serviceEndpoint)
Gets identity associations for particular service endpoint. |
java.lang.String |
getInitiatingSecurityProvider(ServiceEndpoint serviceEndpoint)
Returns name of the security provider to be used for outgoing calls
from given web service endpoint. |
boolean |
isAuthorizationRequired(ServiceEndpoint serviceEndpoint)
It determines whether automatic authorization for given web service endpoint is on. |
void |
removeIdentityAssociation(ServiceEndpoint serviceEndpoint,
IdentityAssociationImpl identityAssociation)
Removes identity association for particular service endpoint. |
void |
setAcceptingSecurityProviders(ServiceEndpoint serviceEndpoint,
java.lang.String[] providerNames)
Sets array of names of the security providers which have to be activated for this service implementation for incoming requests. |
void |
setAuthorizationRequired(ServiceEndpoint serviceEndpoint,
boolean authorizationRequired)
Turns on or off automatic authorization for specified service endpoint. |
java.lang.String[] |
setEndpointPreferences(PrefsMetadata beanMetadata,
org.w3c.dom.Element beanDOM,
ServiceEndpoint endpoint)
Sets particular preferences for endpoint configuration. |
void |
setInitiatingSecurityProvider(ServiceEndpoint serviceEndpoint,
java.lang.String providerName)
Sets the security provider to be used for outgoing calls from given web service endpoint. |
Method Detail |
public void setAuthorizationRequired(ServiceEndpoint serviceEndpoint, boolean authorizationRequired) throws AdminServiceException
serviceEndpoint
- service endpoint for which to setauthorizationRequired
- true
, if authorization is required, false
is it is not
AdminServiceException
- cannot set the valuepublic boolean isAuthorizationRequired(ServiceEndpoint serviceEndpoint) throws AdminServiceException
serviceEndpoint
- service endpoint for which to test
true
if authorization is required,
false
otherwise
AdminServiceException
- cannot set the valuepublic IdentityAssociationImpl[] getIdentityAssociations(ServiceEndpoint serviceEndpoint) throws AdminServiceException
serviceEndpoint
- service endpoint
null
)
AdminServiceException
- cannot get identity associationspublic void addIdentityAssociation(ServiceEndpoint serviceEndpoint, IdentityAssociationImpl identityAssociation) throws AdminServiceException
serviceEndpoint
- service endpointidentityAssociation
- identity association to add
AdminServiceException
- cannot get identity associationspublic void removeIdentityAssociation(ServiceEndpoint serviceEndpoint, IdentityAssociationImpl identityAssociation) throws AdminServiceException
serviceEndpoint
- service endpointidentityAssociation
- identity association to add
AdminServiceException
- cannot get identity associationspublic java.lang.String getInitiatingSecurityProvider(ServiceEndpoint serviceEndpoint) throws AdminServiceException
name
of the security provider to be used for outgoing calls
from given web service endpoint.
serviceEndpoint
- target service endpoint.
null
if service uses default security provider or
no
" service has disabled security provider for outgoing calls.
AdminServiceException
public void setInitiatingSecurityProvider(ServiceEndpoint serviceEndpoint, java.lang.String providerName) throws AdminServiceException
serviceEndpoint
- target service endpoint.providerName
- name of the security provider for outgoing calls.
Note that provider name can be following special value:
null
- Default security providers will be used for outgoing callsno
" - service will use no security provider for outgoing calls.
AdminServiceException
public java.lang.String[] getAcceptingSecurityProviders(ServiceEndpoint serviceEndpoint) throws AdminServiceException
serviceEndpoint
- target service endpoint.
String[0]
if service has disabled security providers for incoming requests.
null
if service uses default accepting security providers.
AdminServiceException
public void setAcceptingSecurityProviders(ServiceEndpoint serviceEndpoint, java.lang.String[] providerNames) throws AdminServiceException
serviceEndpoint
- target service endpoint.providerNames
- array of security provider names for incoming requests.
providerNames array can contain following special values:
null
- Default accepting security providers will be used.
AdminServiceException
public void addAcceptingSecurityProvider(ServiceEndpoint serviceEndpoint, java.lang.String providerName) throws AdminServiceException
serviceEndpoint
- target service endpoint.providerName
- security provider name for incoming requests.
AdminServiceException
public void addAcceptingSecurityProviders(ServiceEndpoint serviceEndpoint, java.lang.String[] providerNames) throws AdminServiceException
serviceEndpoint
- target service endpoint.providerNames
- array of security provider names for incoming requests.
AdminServiceException
public java.lang.String[] setEndpointPreferences(PrefsMetadata beanMetadata, org.w3c.dom.Element beanDOM, ServiceEndpoint endpoint) throws AdminServiceException
getEndpointPrefsMetadata()
List of all known preferences | |||
---|---|---|---|
preference name | preference type | preference subtype | Java Proxy bean interface |
endpoint_sprovider_HttpDigest | securityProviderPreferences | HttpDigest | org.idoox.wasp.security.http.digest.HttpDigestConfig |
endpoint_sprovider_Kerberos | securityProviderPreferences | Kerberos | org.idoox.wasp.security.kerberos.KerberosConfig |
endpoint_sprovider_WS-Security | securityProviderPreferences | WS-Security | org.systinet.wasp.security.ws.conf.WSSEProviderConf |
beanMetadata
- metadata describingbeanDOM
- configuration represented as XMLendpoint
- target service endpoint
AdminServiceException
- when new configuration cannot be saved.public org.w3c.dom.Element getEndpointPreferences(PrefsMetadata beanMetadata, ServiceEndpoint endpoint) throws AdminServiceException
PrefsMetadata
) about endpoint
preferences see getEndpointPrefsMetadata()
.
beanMetadata
- endpoint
-
AdminServiceException
public PrefsMetadata[] getEndpointPrefsMetadata() throws AdminServiceException
List of all known preferences | |||
---|---|---|---|
preference name | preference type | preference subtype | Java Proxy bean interface |
endpoint_sprovider_HttpDigest | securityProviderPreferences | HttpDigest | HttpDigestConfig |
endpoint_sprovider_Kerberos | securityProviderPreferences | Kerberos | KerberosConfig |
endpoint_sprovider_WS-Security | securityProviderPreferences | WS-Security | WSSEProviderConf |
AdminServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |