com.sun.identity.wss.provider
Class TrustAuthorityConfig

java.lang.Object
  extended bycom.sun.identity.wss.provider.TrustAuthorityConfig
Direct Known Subclasses:
DiscoveryConfig

public abstract class TrustAuthorityConfig
extends java.lang.Object

This is an abstract that represents the configuration about a trusted authority.

The trusted authority configuration is used to register the provider configuration information at a trusted authority.

This class can be extended to define the trust authority config such as discovery configuration, ws-trust etc.


Field Summary
static java.lang.String DISCOVERY_TRUST_AUTHORITY
          Discovery service configuration type.
 
Constructor Summary
TrustAuthorityConfig()
           
 
Method Summary
static void deleteConfig(java.lang.String name, java.lang.String type)
          Deletes the trust authority configuration.
static TrustAuthorityConfig getConfig(java.lang.String name, java.lang.String type)
          Returns the trust authority configuration object.
 java.lang.String getEndpoint()
          Returns the authority end point.
 java.lang.String getKeyAlias()
          Returns the key alias of the trust authority.
 java.lang.String getName()
          Returns the trust authority name.
 java.lang.String getType()
          Returns the trust authority type.
static void saveConfig(TrustAuthorityConfig config)
          Saves the trust authority configuration.
 void setEndpoint(java.lang.String endpoint)
          Sets the end point.
 void setKeyAlias(java.lang.String keyAlias)
          Sets the key alias for the trust authority.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISCOVERY_TRUST_AUTHORITY

public static final java.lang.String DISCOVERY_TRUST_AUTHORITY
Discovery service configuration type.

See Also:
Constant Field Values
Constructor Detail

TrustAuthorityConfig

public TrustAuthorityConfig()
Method Detail

getName

public java.lang.String getName()
Returns the trust authority name.

Returns:
the name of the trust authority.

getType

public java.lang.String getType()
Returns the trust authority type.

Returns:
the type of the trust authority.

getEndpoint

public java.lang.String getEndpoint()
Returns the authority end point.

Returns:
the endpoint of the trust authority.

setEndpoint

public void setEndpoint(java.lang.String endpoint)
Sets the end point.

Parameters:
endpoint - the end point for the trust authority.

getKeyAlias

public java.lang.String getKeyAlias()
Returns the key alias of the trust authority.

Returns:
the key alias name.

setKeyAlias

public void setKeyAlias(java.lang.String keyAlias)
Sets the key alias for the trust authority.

Parameters:
keyAlias - the key alias for the trust authority.

getConfig

public static TrustAuthorityConfig getConfig(java.lang.String name,
                                             java.lang.String type)
                                      throws com.sun.identity.wss.provider.ProviderException
Returns the trust authority configuration object.

Parameters:
name - the name of the trust authority.
type - the type of the trust authority. The type must have one of the following values.

DISCOVERY_TRUST_AUTHORITY

Throws:
ProviderException - if any failure in retrieving the trust authority configuration.

saveConfig

public static void saveConfig(TrustAuthorityConfig config)
                       throws com.sun.identity.wss.provider.ProviderException
Saves the trust authority configuration.

Parameters:
config - the trust authority configuration.
Throws:
ProviderException - if any failure in saving the configuration.

deleteConfig

public static void deleteConfig(java.lang.String name,
                                java.lang.String type)
                         throws com.sun.identity.wss.provider.ProviderException
Deletes the trust authority configuration.

Parameters:
name - the name of the trust authority configuration.
type - the type of the trust authority. The type must have one of the values.

DISCOVERY_TRUST_AUTHORITY

Throws:
ProviderException - if any failure in deleting the trust authority configuration.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.