|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.liberty.ws.disco.DiscoveryClient
public class 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,
String soapURI,
String providerID)
Constructor, connects to Discovery Service using WSS X509
Token. |
|
DiscoveryClient(ResourceOffering resourceOffering,
Object session,
String providerID)
Constructor, connects to Discovery Service specified by the resource offering, security mechanism/SOAP endpoint defined in the ResourceOffering will be used. |
|
DiscoveryClient(ResourceOffering resourceOffering,
Object session,
String providerID,
List assertions)
Constructor, connects to Discovery Service specified by the resource offering, security mechanism/SOAP endpoint defined in the ResourceOffering will be used. |
|
DiscoveryClient(SecurityAssertion assertion,
String soapURI,
String providerID)
Constructor, connects to Discovery Service using WSS SAML
Token. |
|
DiscoveryClient(String soapURI,
String providerID)
Constructor, connects to Discovery Service without web service security token. |
Method Summary | |
---|---|
QueryResponse |
getResourceOffering(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(String certAlias)
Sets the alias for the client certificate. |
void |
setProviderID(String providerID)
Sets the provider ID. |
void |
setResourceID(EncryptedResourceID resourceID)
Sets the encrypted resource ID to be accessed. |
void |
setResourceID(String resourceID)
Sets the resource ID to be accessed. |
void |
setWSFVersion(String wsfVersion)
Sets the web services version. |
Constructor Detail |
---|
public DiscoveryClient(String soapURI, String providerID)
soapURI
- URI of the SOAP end point for this discovery
service instanceproviderID
- ID of the web service client.public DiscoveryClient(SecurityAssertion assertion, String soapURI, 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, String soapURI, 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, Object session, String providerID)
ResourceOffering
will be used.
resourceOffering
- resource offering for this
discovery service instancesession
- session of the WSC
providerID
- ID of the web service client.public DiscoveryClient(ResourceOffering resourceOffering, Object session, String providerID, List assertions)
ResourceOffering
will be used.
resourceOffering
- resource offering for this
discovery service instancesession
- session of the WSC
providerID
- ID of the web service client.assertions
- List of assertions.Method Detail |
---|
public void setClientCert(String certAlias)
certAlias
- certificate alias namepublic void setClientAuthentication(boolean value)
value
- The flag value to be setpublic void setResourceID(String resourceID)
resourceID
- resource IDpublic void setResourceID(EncryptedResourceID resourceID)
resourceID
- encrypted resource ID.public void setProviderID(String providerID)
providerID
- ID of the web service client.public QueryResponse getResourceOffering(List serviceTypes) throws DiscoveryException
ResourceOffering
given list of
service types.
serviceTypes
- List of serviceTypes
as
java.lang.String
to be queried
DiscoveryException
- if error occurspublic QueryResponse getResourceOffering(Query query) throws DiscoveryException
query
- discovery query object
DiscoveryException
- if error occurspublic ModifyResponse modify(Modify modify) throws DiscoveryException
modify
- List of Modify object
ModifyResponse
object
DiscoveryException
- if error occurspublic void setWSFVersion(String wsfVersion)
wsfVersion
- the web services version that should be used.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |