|
Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-07 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupCertRegManagerMBean
The GroupCertRegManager is used to manage a certificate trust group in the certificate registry that is stored in the embedded LDAP server.
This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through weblogic.management.MBeanHome
. As of 9.0, the MBeanHome
interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection
interface to discover MBeans, attributes, and attribute types at runtime.
Method Summary | |
---|---|
void |
addCertificateToTrustGroups(String[] trustGroups,
String alias)
Add an already registered end certificate to list of trust groups. |
boolean |
aliasExists(String trustGroup,
String alias)
Determines whether or not an alias exists in a trust group. |
void |
copyFromJKS(String trustGroup,
String certificateFile)
Register all certificates contained in a JKS file to a trust group. |
void |
copyToDER(String trustGroup,
String alias,
String certificateFile)
writes a certificate in a trust group to a file in DER binary format. |
void |
copyToJKS(String trustGroup,
String JKSFile)
writes all certificates in a trust group to a JKS. |
void |
copyToPEM(String trustGroup,
String alias,
String certificateFile)
writes a certificate in a trust group to a file in PEM base64 encoded format. |
void |
createTrustGroup(String TrustGroup)
Create an empty trust group in the registry. |
X509Certificate |
getCertificate(String trustGroup,
String alias)
Retrieves a certificate from the registry. |
String |
getName()
The name of this configuration. |
String[] |
getTrustGroups(String alias)
Retrieves all the trust groups that has a given alias registered under. |
boolean |
isAliasRegistered(String alias)
Determines whether or not an alias was registered in the registry. |
String |
listAliasesByTrustGroup(String trustGroup,
String aliasWildcard,
int maxToReturn)
Lists the registered aliases that match a wild card in a given trust group. |
String |
listTrustGroups(String trustGroupWildcard,
int maxToReturn)
Lists the registered trust groups that match a wild card. |
void |
registerCertificate(String[] trustGroups,
String alias,
String certificateFile)
Registers an end certificate from a file in to a list of trust group under an alias. |
void |
removeCertificate(String alias)
Remove an end certificate from the registry which means it is also unregistered from trust groups (if any). |
void |
removeTrustGroup(String trustGroup)
Remove an trust group from the registry. |
boolean |
trustGroupExists(String trustGroup)
Determines whether or not a trust group exists in the registry. |
void |
unregisterCertificate(String[] trustGroups,
String alias)
Unregisters an end certificate from trust groups. |
Methods inherited from interface weblogic.management.security.ProviderMBean |
---|
getDescription, getRealm, getVersion |
Methods inherited from interface weblogic.management.security.ImportMBean |
---|
getSupportedImportConstraints, getSupportedImportFormats, importData |
Methods inherited from interface weblogic.management.security.ExportMBean |
---|
exportData, getSupportedExportConstraints, getSupportedExportFormats |
Methods inherited from interface weblogic.management.utils.NameListerMBean |
---|
getCurrentName |
Methods inherited from interface weblogic.management.utils.ListerMBean |
---|
advance, close, haveCurrent |
Method Detail |
---|
void registerCertificate(String[] trustGroups, String alias, String certificateFile) throws weblogic.management.utils.ErrorCollectionException, weblogic.management.utils.InvalidParameterException
Registers an end certificate from a file in to a list of trust group under an alias.
Throws ErrorCollectionException containing any errors when register the certificate to a trust group.However, the certificate is registered to other trust group.
Throws InvalidParameterException if the trust groups, alias or certificateFile is empty or null or if the file does not exist or cannot be read.
trustGroups
- - The trust groups to register the certificate under. It must not be empty or null. Trust groups are case-insensitive.alias
- - The alias to register the certificate under. It must not be empty or null. Aliases are case-insensitive.certificateFile
- - The pathname (relative to the directory the admin server is booted from) of a PEM or DER file containing the certificate to be registered.
weblogic.management.utils.ErrorCollectionException
weblogic.management.utils.InvalidParameterException
void addCertificateToTrustGroups(String[] trustGroups, String alias) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.ErrorCollectionException, weblogic.management.utils.InvalidParameterException
Add an already registered end certificate to list of trust groups.
Throws ErrorCollectionException containing any errors when register the certificate to a single trust group.
Throws InvalidParameterException if the trust groups, alias or certificateFile is empty or null or if the file does not exist or cannot be read.
Throws NotFoundException when the given alias does not exist in the registry.
trustGroups
- - The trust groups to register the certificate under. It must not be empty or null. Trust groups are case-insensitive.alias
- - The alias to register the certificate under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.NotFoundException
weblogic.management.utils.ErrorCollectionException
weblogic.management.utils.InvalidParameterException
void unregisterCertificate(String[] trustGroups, String alias) throws weblogic.management.utils.ErrorCollectionException, weblogic.management.utils.InvalidParameterException
Unregisters an end certificate from trust groups.
Throws InvalidParameterException if alias is empty or null or the given trust groups is empty or null.
Throws ErrorCollectionException if the alias does not found in any of the trust group given. However, the certificate is unregistered from other trust groups.
trustGroups
- - The trust group to register the certificate under. It must not be empty or null. Trust Groups are case-insensitive.alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.ErrorCollectionException
weblogic.management.utils.InvalidParameterException
void removeCertificate(String alias) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException
Remove an end certificate from the registry which means it is also unregistered from trust groups (if any).
Throws InvalidParameterException if alias is empty or null.
Throws NotFoundException if the alias does not found in the registry.
alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
void createTrustGroup(String TrustGroup) throws weblogic.management.utils.AlreadyExistsException, weblogic.management.utils.InvalidParameterException
Create an empty trust group in the registry.
Throws AlreadyExistsException if the trust group already registered to the registry.
Throws InvalidParameterException if the trust group is empty or null.
TrustGroup
- - The trust group to register the certificate under. It must not be empty or null. Trust groups are case-insensitive.
weblogic.management.utils.AlreadyExistsException
weblogic.management.utils.InvalidParameterException
void removeTrustGroup(String trustGroup) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException
Remove an trust group from the registry.
Throws NotFoundException if the trust group does not exist in the registry.
Throws InvalidParameterException if the trust group is empty or null.
trustGroup
- - The trust group to unregister the certificate under. It must not be empty or null. Trust groups are case-insensitive.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
String listTrustGroups(String trustGroupWildcard, int maxToReturn) throws weblogic.management.utils.InvalidCursorException, weblogic.management.utils.InvalidParameterException
Lists the registered trust groups that match a wild card.
Returns a String containing a cursor that may be passed into the NameListerMBean methods to read the list. The getCurrentName method returns the current trust group on the list.
Throws InvalidCursorException.
Throws InvalidParameterException if the trust group is empty or null.
trustGroupWildcard
- - A wild card used to select trust groups. It supports three formats: "*" matches all trust groups. "foo*" matches all trust groups starting with the string "foo". "foo" matches the trust groups "foo" only. The matches are case-insensitive.maxToReturn
- - The maximum number of trust groups this method may return. If there are more matches than this maximum, then the returned results are arbitrary because this method does not sort the results. Set this parameter to zero to return all matching trust groups.
weblogic.management.utils.InvalidCursorException
weblogic.management.utils.InvalidParameterException
String listAliasesByTrustGroup(String trustGroup, String aliasWildcard, int maxToReturn) throws weblogic.management.utils.InvalidCursorException, weblogic.management.utils.InvalidParameterException
Lists the registered aliases that match a wild card in a given trust group.
Returns a String containing a cursor that may be passed into the NameListerMBean methods to read the list. The getCurrentName method returns the current alias on the list.
Throws InvalidCursorException.
Throws InvalidParameterException if the trust group or wild card is empty or null.
trustGroup
- - The trust group to list certificates under. It must not be empty or null. Trust groups are case-insensitive.aliasWildcard
- - A wild card used to select aliases. It supports three formats: "*" matches all aliases. "foo*" matches all aliases starting with the string "foo". "foo" matches the alias "foo" only. The matches are case-insensitive.maxToReturn
- - The maximum number of aliases this method may return. If there are more matches than this maximum, then the returned results are arbitrary because this method does not sort the results. Set this parameter to zero to return all matching aliases.
weblogic.management.utils.InvalidCursorException
weblogic.management.utils.InvalidParameterException
boolean trustGroupExists(String trustGroup) throws weblogic.management.utils.InvalidParameterException
Determines whether or not a trust group exists in the registry.
Return true if the trust group exists in the registry otherwise return false.
Throws InvalidParameterException if the trust group is empty or null.
trustGroup
- - The trustGroup is registered. It must not be empty or null. Trust groups are case-insensitive.
weblogic.management.utils.InvalidParameterException
X509Certificate getCertificate(String trustGroup, String alias) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException
Retrieves a certificate from the registry.
Throws NotFoundException if alias does not exist in the registry.
Throws InvalidParameterException if the alias or trust group is null or empty.
trustGroup
- - The trustgroup to get certificate under. It must not be empty or null. Trust Groups are case-insensitive.alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
String[] getTrustGroups(String alias) throws weblogic.management.utils.InvalidParameterException
Retrieves all the trust groups that has a given alias registered under.
Throws NotFoundException if alias does not exist in the registry.
Throws InvalidParameterException if the alias is null or empty.
alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.InvalidParameterException
boolean aliasExists(String trustGroup, String alias) throws weblogic.management.utils.InvalidParameterException
Determines whether or not an alias exists in a trust group.
Return true if the alias exists in the trust group otherwise return false.
Throws InvalidParameterException if the alias or trust group is empty or null.
trustGroup
- - The trust group to the certificate is registered under. It must not be empty or null. Trustg roups are case-insensitive.alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.InvalidParameterException
boolean isAliasRegistered(String alias) throws weblogic.management.utils.InvalidParameterException
Determines whether or not an alias was registered in the registry.
Return true if the alias exists in the registry otherwise return false.
Throws InvalidParameterException if the alias is empty or null.
alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.
weblogic.management.utils.InvalidParameterException
void copyToPEM(String trustGroup, String alias, String certificateFile) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException
writes a certificate in a trust group to a file in PEM base64 encoded format.
Throws InvalidParameterException if the trust group, alias or certificateFile is empty or null or if the file cannot be written to.
Throws NotFoundException if the certificate does not exist in the trust group
trustGroup
- - The trust group to the certificate is registered under. It must not be empty or null. Trust groups are case-insensitive.alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.certificateFile
- - The pathname (relative to the directory the admin server is booted from) of the file to write the certificate to.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
void copyToDER(String trustGroup, String alias, String certificateFile) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException
writes a certificate in a trust group to a file in DER binary format.
Throws InvalidParameterException if the trust group, alias or certificateFile is empty or null or if the file cannot be written to.
Throws NotFoundException if the certificate does not exist in the trust group
trustGroup
- - The trust group to the certificate is registered under. It must not be empty or null. Trust Groups are case-insensitive.alias
- - The alias the certificate is registered under. It must not be empty or null. Aliases are case-insensitive.certificateFile
- - The pathname (relative to the directory the admin server is booted from) of the file to write the certificate to.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
void copyToJKS(String trustGroup, String JKSFile) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException, weblogic.management.utils.ErrorCollectionException
writes all certificates in a trust group to a JKS.
Throws InvalidParameterException if the trust group or certificateFile is empty or null or if the file cannot be written to.
Throws NotFoundException if the trust group does not exist in the registry.
Throws ErrorCollectionException if errors happen when write any certificate to the JKS file.
trustGroup
- - The trustgroup to the certificate was registered under. It must not be empty or null. Trust Groups are case-insensitive.JKSFile
- - The pathname (relative to the directory the admin server is booted from) of the file to write the certificates to.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
weblogic.management.utils.ErrorCollectionException
void copyFromJKS(String trustGroup, String certificateFile) throws weblogic.management.utils.NotFoundException, weblogic.management.utils.InvalidParameterException, weblogic.management.utils.ErrorCollectionException
Register all certificates contained in a JKS file to a trust group.
Throws InvalidParameterException if the trust group or certificateFile is empty or null or if the file cannot be written to.
Throws NotFoundException if the trust group does not exist in the registry.
Throws ErrorCollectionException if errors happen when register any certificate to the group.
trustGroup
- - The trust group to the certificate is registered under. It must not be empty or null. Trust Groups are case-insensitive.certificateFile
- - The pathname (relative to the directory the admin server is booted from) of the file to write the certificate to.
weblogic.management.utils.NotFoundException
weblogic.management.utils.InvalidParameterException
weblogic.management.utils.ErrorCollectionException
String getName()
ProviderMBean
getName
in interface ProviderMBean
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |