|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.liberty.ws.disco.DiscoveryClient
The class DiscoveryClient
provides methods to send
Discovery Service query and modify.
Note: Current implementation uses JAXB
objects and no wrapper
classes are used.
Constructor Summary | |
DiscoveryClient(BinarySecurityToken token,
java.lang.String soapURI,
java.lang.String providerID)
Constructor, connects to Discovery Service using WSS X509
Token. |
|
DiscoveryClient(ResourceOffering resourceOffering,
SSOToken ssoToken,
java.lang.String providerID)
Constructor, connects to Discovery Service specified by the resource offering, security mechanism/SOAP endpoint defined in the ResourceOffering will be used. |
|
DiscoveryClient(SecurityAssertion assertion,
java.lang.String soapURI,
java.lang.String providerID)
Constructor, connects to Discovery Service using WSS SAML
Token. |
|
DiscoveryClient(java.lang.String soapURI,
java.lang.String providerID)
Constructor, connects to Discovery Service without web service security token. |
Method Summary | |
QueryResponse |
getResourceOffering(java.util.List serviceTypes)
Queries discovery service for ResourceOffering given list of
service types. |
QueryResponse |
getResourceOffering(Query query)
Queries discovery service for resource offering |
ModifyResponse |
modify(Modify modify)
Modifies discovery resource offering |
void |
setClientAuthentication(boolean value)
Sets flag to indicate whether the connection is SSL/TLS with client authentication. |
void |
setClientCert(java.lang.String certAlias)
Sets the alias for the client certificate. |
void |
setProviderID(java.lang.String providerID)
Sets the provider ID. |
void |
setResourceID(EncryptedResourceID resourceID)
Sets the encrypted resource ID to be accessed. |
void |
setResourceID(java.lang.String resourceID)
Sets the resource ID to be accessed |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiscoveryClient(java.lang.String soapURI, java.lang.String providerID)
soapURI
- URI of the SOAP end point for this discovery
service instanceproviderID
- ID of the web service client.public DiscoveryClient(SecurityAssertion assertion, java.lang.String soapURI, java.lang.String providerID)
WSS
SAML
Token.assertion
- WSS
SAML TokensoapURI
- URI of the SOAP end point for this discovery
service instanceproviderID
- ID of the web service client.public DiscoveryClient(BinarySecurityToken token, java.lang.String soapURI, java.lang.String providerID)
WSS X509
Token.token
- WSS X.509
Certificate TokensoapURI
- URI of the SOAP end point for this discovery
service instance.providerID
- ID of the web service client.public DiscoveryClient(ResourceOffering resourceOffering, SSOToken ssoToken, java.lang.String providerID)
ResourceOffering
will be used.resourceOffering
- resource offering for this
discovery service instancessoToken
- SSOToken
of the WSC
providerID
- ID of the web service client.Method Detail |
public void setClientCert(java.lang.String certAlias)
certAlias
- certificate alias namepublic void setClientAuthentication(boolean value)
value
- The flag value to be setpublic void setResourceID(java.lang.String resourceID)
resourceID
- resource IDpublic void setResourceID(EncryptedResourceID resourceID)
resourceID
- encrypted resource ID.public void setProviderID(java.lang.String providerID)
providerID
- ID of the web service client.public QueryResponse getResourceOffering(java.util.List serviceTypes) throws DiscoveryException
ResourceOffering
given list of
service types.serviceTypes
- List of serviceTypes
as
java.lang.String
to be queriedDiscoveryException
- if error occurspublic QueryResponse getResourceOffering(Query query) throws DiscoveryException
query
- discovery query objectDiscoveryException
- if error occurspublic ModifyResponse modify(Modify modify) throws DiscoveryException
modify
- List of Modify objectModifyResponse
objectDiscoveryException
- if error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |