|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CertificateMBean
The class represents the reference for the certificate along with the private key associated with it imported, into the Keystore for WLI. There are 4 types of certificate types, supported by WLI
CLIENT - Digital certificate for a remote or local trading partner. Required when the SSL protocol with mutual authentication is used. This certificate is also used for one way or SSL_CERT authentication mode.
SERVER - Digital certificate for a remote trading partner. Required when the SSL protocol is used
ENCRYPTION - Required for each trading partner when business message encryption is used. Note that encryption support is available only with the RosettaNet protocols.
SIGNATURE - Required for each trading partner if nonrepudiation is configured.
TradingPartnerMBean
Field Summary | |
---|---|
static String |
CLIENT_CERTIFICATE
|
static String |
ENCRYPTION_CERTIFICATE
|
static String |
SERVER_CERTIFICATE
|
static String |
SIGNATURE_CERTIFICATE
|
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
Certificate |
getCertificate()
Retrieves the X509 Certificate from the Java Key store configured to be used with WLI The certificate name specified for this object, would be used as the alias to retrieve the certificate. |
String |
getCertificateName()
Returns the name of the certificate in the WebLogic Integration repository. |
String |
getCertificateType()
Returns the type of the certificate in the WebLogic Integration repository. |
String |
getPassword()
Returns the password for the private key of the certificate. |
String |
getPasswordAlias()
Returns the password alias for the private key of the certificate. |
void |
importCertificate(InputStream inputStream)
Internal Use Only - This method is used to read the certificate from the input stream file and import into the Java Key store configured to be used with WLI. |
void |
importCertificateAndKeyFromFile(String certFile,
String keyFile,
String password)
This method is used to read the certificate and private key from the file and import into the Java Key store configured to be used with WLI. |
void |
importCertificateFromFile(String fileName)
This method is used to read the certificate from the file and import into the Java Key store configured to be used with WLI. |
boolean |
isPasswordEncrypted()
Deprecated. |
TradingPartnerMBean |
retrieveTradingPartner()
Retrieves the TradingPartnerMBean associated for this certificate. |
void |
setCertificateName(String newValue)
Registers the name of this certificate type. |
void |
setCertificateType(String newValue)
Specifies the type of the certificate in the WebLogic Integration repository. |
void |
setPassword(String newValue)
Deprecated. remove when pw store completed |
void |
setPasswordAlias(String newValue)
Registers the password alias for the private key used for the importing certificate. |
void |
setPasswordEncrypted(boolean newValue)
Deprecated. |
void |
updateAll(String passwordAlias,
String certFile,
String keyFile,
boolean importInKeyStore)
Updates the certificate. |
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 CLIENT_CERTIFICATE
static final String SERVER_CERTIFICATE
static final String SIGNATURE_CERTIFICATE
static final String ENCRYPTION_CERTIFICATE
Method Detail |
---|
String getCertificateName()
void setCertificateName(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- - the name of the certificate
javax.management.InvalidAttributeValueException
- - If the name cannot be set or the name has
invalid characters.String getCertificateType()
void setCertificateType(String newValue) throws javax.management.InvalidAttributeValueException
newValue
- - type of the certificate
javax.management.InvalidAttributeValueException
- - If none of the above valid typesString 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 to be set
javax.management.InvalidAttributeValueException
- - If the specified value is null
or has blank spacesboolean isPasswordEncrypted()
void setPasswordEncrypted(boolean newValue) throws javax.management.InvalidAttributeValueException
newValue
- - wether the password is encrypted
javax.management.InvalidAttributeValueException
Certificate getCertificate() throws ManagementException
ManagementException
- - If unable to retrieve certificate or certificate with alias
does not existsvoid importCertificateFromFile(String fileName) throws ManagementException
fileName
- - Absolute path of the file
ManagementException
- - If unable to read from the file or unable to load the certificate to keystorevoid importCertificateAndKeyFromFile(String certFile, String keyFile, String password) throws ManagementException
certFile
- - Absolute path of the filekeyFile
- - Absolute path of the private key filepassword
- - password of the private key in clear text
ManagementException
- - If unable to read from the file or unable to load the certificate to keystorevoid importCertificate(InputStream inputStream) throws ManagementException
inputStream
- -
ManagementException
- - If unable to read from stream or unable to load the certificate to keystoreTradingPartnerMBean retrieveTradingPartner() throws ManagementException
null
is no trading partner is associated with this certificate
ManagementException
- - If unable to find the the trading partner for this
certificate type.void updateAll(String passwordAlias, String certFile, String keyFile, boolean importInKeyStore) throws javax.management.InvalidAttributeValueException, UpdateException, ObjectActiveException
password
- - No longer used. Provided value is ignored.passwordEncrypted
- - No longer used. Provided value is ignored.passwordAlias
- - alias name in password storecertFile
- - Absolute file location on the file system. This can be null.
In this case, no certificate would be imported to the key store. The certificate could be
imported at a later stage, using the CertificateMBean.keyFile
- - Absolute file location of the private key for the certificate. if this is
specified then certFile must also be provided.importInKeyStore
- - Should the certificate be imported into keystore
javax.management.InvalidAttributeValueException
UpdateException
ObjectActiveException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |