|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationMBean
The class represents the authentication properties of the client trading partner. Authentication properties can be specified for each Transport's endpoint. There are 3 types of authentication modes, supported by WLI
BASIC mode can be specified for client's who wants to use have simple username/password kind of authentication over HTTP. SSL configuration is not needed for this mode.
SSL_CERT mode is used for one way authentication for client side only over SSL. SSL needs to be configured and client certificate must be provided for this mode.
SSL_CERT_MUTUAL mode is used for specifying mutual authentication between client and server. SSL needs to be configured. Both the client and server certificate needs to be provided. For using the authentication mode the WLS User name attribute for Trading Partner must be specified. When this mode is specified the client side authentication must also be specified as SSL_CERT
BASIC and SSL_CERT are considered as Client side authentication mode. SSL_CERT_MUTUAL is considered as Server side authentication mode
TradingPartnerMBean
Field Summary | |
---|---|
static String |
BASIC
|
static String |
NONE
|
static String |
SSL_CERT
|
static String |
SSL_CERT_BASIC
|
static String |
SSL_CERT_MUTUAL
|
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
void |
addClientCertificate(String aliasName)
Registers the name or alias of the client certificate for CERT_SSL authentication mode. |
void |
addClientTradingPartner(String newValue)
Adds the name of the client trading partner for the authentication mode. |
void |
addServerCertificate(String aliasName)
Registers the name or alias of the server certificate for CERT_SSL_MUTUAL authentication mode. |
String |
getClientAuthenticationMode()
Returns the type of client authentication mode specified for this object. |
String |
getClientCertificateName()
Retrieves the alias/name of the client certificate used for the SSL_CERT authentication. |
String |
getPassword()
Returns the password used for BASIC authentication mode. |
String |
getPasswordAlias()
Returns the password alias for the password store. |
String |
getServerAuthenticationMode()
Returns the type of server authentication mode specified for this object. |
String |
getServerCertificateName()
Retrieves the alias/name of the server certificate used for the SSL_CERT_MUTUAL authentication. |
String |
getUserName()
Returns the username used for BASIC authentication mode. |
void |
removeCertificate(String aliasName)
Removes the reference for the certificate used for authentication. |
CertificateMBean |
retrieveClientCertificate()
Retrieves the CertificateMBean for client certificate alias. |
TradingPartnerMBean |
retrieveClientTradingPartner()
Retrieves the client TradingPartnerMBean for this authentication object |
CertificateMBean |
retrieveServerCertificate()
Retrieves the CertificateMBean for server certificate alias. |
TradingPartnerMBean |
retrieveTradingPartner()
For OAM user only - Retrieves the TradingPartnerMBean for this authentication object |
void |
setClientAuthenticationMode(String newValue)
Registers the authentication mode for client type authentication modes. |
void |
setPassword(String newValue)
Registers the password used for BASIC authentication mode. |
void |
setPasswordAlias(String newValue)
Registers the password alias used for BASIC authentication mode. |
void |
setServerAuthenticationMode(String newValue)
Registers the authentication mode for server type authentication modes. |
void |
setUserName(String newValue)
Registers the username used for BASIC authentication mode. |
void |
updateAll(String serverCertName,
String clientCertName,
String userName,
String passwordAlias)
Updates authentication |
Methods inherited from interface com.bea.wli.tpm.management.configuration.TPMBaseMBean |
---|
fromXML, getDelegateObject, isActive, publish, remove, setActive, setDelegateObject, toXML, toXMLInternal, update, updateInternal |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
freezeCurrentValue, getComments, getName, getNotes, isDefaultedMBean, isPersistenceEnabled, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, touch, unSet |
Methods inherited from interface weblogic.management.WebLogicMBean |
---|
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent |
Methods inherited from interface javax.management.DynamicMBean |
---|
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
---|
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface weblogic.descriptor.DescriptorBean |
---|
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener |
Field Detail |
---|
static final String NONE
static final String BASIC
static final String SSL_CERT
static final String SSL_CERT_BASIC
static final String SSL_CERT_MUTUAL
Method Detail |
---|
String getClientAuthenticationMode()
NONE
- If no authentication mode is used
BASIC
- If simple username/password type authentication is used.
SSL_CERT_MUTUAL
- If SSL for client side was specified.void setClientAuthenticationMode(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- the authentication mode
javax.management.InvalidAttributeValueException
- - If the specified value
is not NONE, BASIC or SSL_CERT_MUTUALString getServerAuthenticationMode()
NONE
- If no authentication mode is used
SSL_CERT
- If SSL for server side was specified.void setServerAuthenticationMode(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- the authentication mode
javax.management.InvalidAttributeValueException
- - If the specified value is not NONE or SSL_CERTString getUserName()
void setUserName(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- the name to be set
javax.management.InvalidAttributeValueException
- - If the specified value is null or has blank spacesString getPassword()
void setPassword(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- the password to be set
javax.management.InvalidAttributeValueException
- - If the specified value is null or has blank spacesString getPasswordAlias()
void setPasswordAlias(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- the password alias name to be set
javax.management.InvalidAttributeValueException
- - If the specified value is null
or has blank spacesvoid addClientTradingPartner(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- Specifies the name of the client trading partner, for which this
authentication mode is specified.
javax.management.InvalidAttributeValueException
- - If the specified value could not setvoid addClientCertificate(String aliasName) throws ConfigurationException
aliasName
- - Name of the certificate alias in Java Key Store
ConfigurationException
CertificateMBean
void addServerCertificate(String aliasName) throws ConfigurationException
aliasName
- - Name of the certificate alias in Java Key Store
ConfigurationException
CertificateMBean
void removeCertificate(String aliasName) throws DeleteException, javax.management.InstanceNotFoundException
aliasName
- - Name of the certificate alias in Java Key Store
DeleteException
javax.management.InstanceNotFoundException
CertificateMBean retrieveClientCertificate() throws ManagementException
null
would be returned if there is no matching client certificate alias
ManagementException
- - If client certificate cannot be found in the
Java Key Store or could not retrieve the
client trading partner for the client certificateCertificateMBean retrieveServerCertificate() throws ManagementException
null
would be returned if there is no matching server certificate alias
ManagementException
- - If server certificate cannot be found in the
Java Key Store or could not retrieve the
client trading partner for the server certificateString getClientCertificateName() throws ManagementException
null
would be returned if there is no client certificate alias configured
ManagementException
String getServerCertificateName() throws ManagementException
null
would be returned if there is no server certificate alias configured
ManagementException
TradingPartnerMBean retrieveClientTradingPartner() throws ManagementException
ManagementException
- - If the client trading partner is not configured for this
authentication mode.TradingPartnerMBean retrieveTradingPartner() throws ManagementException
ManagementException
- - If the trading partner is not configured for this
authentication mode.void updateAll(String serverCertName, String clientCertName, String userName, String passwordAlias) throws javax.management.InvalidAttributeValueException, UpdateException, ObjectActiveException
serverCertName
- - Alias of the server certificate in keystoreclientCertName
- - Alias of the client certificate in keystoreuserName
- - username for authenticationpasswordAlias
- - alias name in password store
javax.management.InvalidAttributeValueException
UpdateException
ObjectActiveException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |