com.sun.identity.liberty.ws.disco
クラス DiscoveryClient

java.lang.Object
  上位を拡張 com.sun.identity.liberty.ws.disco.DiscoveryClient

public class DiscoveryClient
extends Object

The class DiscoveryClient provides methods to send Discovery Service query and modify. Note: Current implementation uses JAXB objects and no wrapper classes are used.


コンストラクタの概要
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.
 
メソッドの概要
 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.
 

コンストラクタの詳細

DiscoveryClient

public DiscoveryClient(String soapURI,
                       String providerID)
Constructor, connects to Discovery Service without web service security token.

パラメータ:
soapURI - URI of the SOAP end point for this discovery service instance
providerID - ID of the web service client.

DiscoveryClient

public DiscoveryClient(SecurityAssertion assertion,
                       String soapURI,
                       String providerID)
Constructor, connects to Discovery Service using WSS SAML Token.

パラメータ:
assertion - WSS SAML Token
soapURI - URI of the SOAP end point for this discovery service instance
providerID - ID of the web service client.

DiscoveryClient

public DiscoveryClient(BinarySecurityToken token,
                       String soapURI,
                       String providerID)
Constructor, connects to Discovery Service using WSS X509 Token.

パラメータ:
token - WSS X.509 Certificate Token
soapURI - URI of the SOAP end point for this discovery service instance.
providerID - ID of the web service client.

DiscoveryClient

public 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.

パラメータ:
resourceOffering - resource offering for this discovery service instance
session - session of the WSC
providerID - ID of the web service client.

DiscoveryClient

public 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.

パラメータ:
resourceOffering - resource offering for this discovery service instance
session - session of the WSC
providerID - ID of the web service client.
assertions - List of assertions.
メソッドの詳細

setClientCert

public void setClientCert(String certAlias)
Sets the alias for the client certificate. If none is set, a default client certificate will be used.

パラメータ:
certAlias - certificate alias name

setClientAuthentication

public void setClientAuthentication(boolean value)
Sets flag to indicate whether the connection is SSL/TLS with client authentication. When this flag is set to true, the message will not be signed according to the spec. If you want to sign the message always, do not set this flag to true, even when the connection is SSL/TLS with client authentication.

パラメータ:
value - The flag value to be set

setResourceID

public void setResourceID(String resourceID)
Sets the resource ID to be accessed.

パラメータ:
resourceID - resource ID

setResourceID

public void setResourceID(EncryptedResourceID resourceID)
Sets the encrypted resource ID to be accessed.

パラメータ:
resourceID - encrypted resource ID.

setProviderID

public void setProviderID(String providerID)
Sets the provider ID.

パラメータ:
providerID - ID of the web service client.

getResourceOffering

public QueryResponse getResourceOffering(List serviceTypes)
                                  throws DiscoveryException
Queries discovery service for ResourceOffering given list of service types.

パラメータ:
serviceTypes - List of serviceTypes as java.lang.String to be queried
戻り値:
Query response Element corresponding to the query
例外:
DiscoveryException - if error occurs

getResourceOffering

public QueryResponse getResourceOffering(Query query)
                                  throws DiscoveryException
Queries discovery service for resource offering.

パラメータ:
query - discovery query object
戻り値:
Query response Element corresponding to the query
例外:
DiscoveryException - if error occurs

modify

public ModifyResponse modify(Modify modify)
                      throws DiscoveryException
Modifies discovery resource offering.

パラメータ:
modify - List of Modify object
戻り値:
List of ModifyResponse object
例外:
DiscoveryException - if error occurs

setWSFVersion

public void setWSFVersion(String wsfVersion)
Sets the web services version.

パラメータ:
wsfVersion - the web services version that should be used.