Package com.sun.identity.wss.provider
Class DiscoveryConfig
- java.lang.Object
-
- com.sun.identity.wss.provider.TrustAuthorityConfig
-
- com.sun.identity.wss.provider.DiscoveryConfig
-
- Direct Known Subclasses:
DiscoveryAgent
public abstract class DiscoveryConfig extends TrustAuthorityConfig
This abstract classDiscoveryConfigrepresents the configuration of a Discovery client entity. It extendsTrustAuthorityConfig.This class can be extended to define the trust authority config which is Discovery client configuration.
Pluggable implementation of this abstract class can choose to store this configuration in desired configuration store. This pluggable implementation class can be configured in client's AMConfig.properties as value of "com.sun.identity.wss.discovery.config.plugin" property for Discovery client configuration.
This class also provides methods for registering and un-registering with the discovery service. All the static methods in this class are for the persistent operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthServiceEndpoint-
Fields inherited from class com.sun.identity.wss.provider.TrustAuthorityConfig
customAdminToken, DISCOVERY_TRUST_AUTHORITY, encryptionAlgorithm, encryptionStrength, endpoint, isRequestEncrypted, isRequestHeaderEncrypted, isRequestSigned, isResponseEncrypted, isResponseSigned, name, privateKeyAlias, publicKeyAlias, secMech, signingRefType, STS_TRUST_AUTHORITY, type, usercredentials, WSS_DISCOVERY_CONFIG_PLUGIN, WSS_STS_CONFIG_PLUGIN
-
-
Constructor Summary
Constructors Constructor Description DiscoveryConfig()Creates a new instance of DiscoveryConfig
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthServiceEndPoint()Returns Authentication Web Service End point.voidregisterProviderWithTA(ProviderConfig config, String serviceURI)Registers the Discovery client configuration with trusted authority.voidregisterProviderWithTA(ProviderConfig config, String serviceURI, boolean unregister)Registers the Discovery client configuration with trusted authority.voidsetAuthServiceEndPoint(String authServiceEndpoint)Sets Authentication Web Service End point.voidunregisterProviderWithTA(String serviceURI)Unregisters the provider with trusted authority.-
Methods inherited from class com.sun.identity.wss.provider.TrustAuthorityConfig
delete, deleteConfig, getConfig, getEncryptionAlgorithm, getEncryptionStrength, getEndpoint, getKeyAlias, getName, getPublicKeyAlias, getSecurityMech, getSigningRefType, getType, getUsers, init, isRequestEncryptEnabled, isRequestHeaderEncryptEnabled, isRequestSignEnabled, isResponseEncryptEnabled, isResponseSignEnabled, saveConfig, setAdminToken, setEncryptionAlgorithm, setEncryptionStrength, setEndpoint, setKeyAlias, setName, setPublicKeyAlias, setRequestEncryptEnabled, setRequestHeaderEncryptEnabled, setRequestSignEnabled, setResponseEncryptEnabled, setResponseSignEnabled, setSecurityMechs, setSigningRefType, setType, setUsers, store
-
-
-
-
Field Detail
-
authServiceEndpoint
protected String authServiceEndpoint
-
-
Method Detail
-
getAuthServiceEndPoint
public String getAuthServiceEndPoint()
Returns Authentication Web Service End point.- Returns:
- Authentication Web Service End point
-
setAuthServiceEndPoint
public void setAuthServiceEndPoint(String authServiceEndpoint)
Sets Authentication Web Service End point.- Parameters:
authServiceEndpoint- Authentication Web Service End point
-
registerProviderWithTA
public void registerProviderWithTA(ProviderConfig config, String serviceURI) throws ProviderException
Registers the Discovery client configuration with trusted authority.- Parameters:
config- the configuration of the Discovery client.serviceURI- theURIof the web services provider.- Throws:
ProviderException- if any failure.
-
registerProviderWithTA
public void registerProviderWithTA(ProviderConfig config, String serviceURI, boolean unregister) throws ProviderException
Registers the Discovery client configuration with trusted authority.- Parameters:
config- the configuration of the Discovery client.serviceURI- theURIof the web services provider.unregister- if true unregisters the service offering with trusted authority before registration.- Throws:
ProviderException- if any failure.
-
unregisterProviderWithTA
public void unregisterProviderWithTA(String serviceURI) throws ProviderException
Unregisters the provider with trusted authority.- Parameters:
serviceURI- the serviceURIof the web services provider.- Throws:
ProviderException- if any failure.
-
-