Package org.opends.server.crypto
Class GetSymmetricKeyExtendedOperation
- java.lang.Object
-
- org.opends.server.api.ExtendedOperationHandler<GetSymmetricKeyExtendedOperationHandlerCfg>
-
- org.opends.server.crypto.GetSymmetricKeyExtendedOperation
-
public class GetSymmetricKeyExtendedOperation extends ExtendedOperationHandler<GetSymmetricKeyExtendedOperationHandlerCfg>
This class implements the get symmetric key extended operation, an OpenDS proprietary extension used for distribution of symmetric keys amongst servers.
-
-
Field Summary
Fields Modifier and Type Field Description static byteTYPE_INSTANCE_KEY_ID_ELEMENTThe BER type value for the instance key ID element of the operation value.static byteTYPE_SYMMETRIC_KEY_ELEMENTThe BER type value for the symmetric key element of the operation value.
-
Constructor Summary
Constructors Constructor Description GetSymmetricKeyExtendedOperation()Create an instance of this symmetric key extended operation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ByteStringencodeRequestValue(String symmetricKey, String instanceKeyID)Encodes the provided information into an ASN.1 octet string suitable for use as the value for this extended operation.StringgetExtendedOperationName()Retrieves the name associated with this extended operation.StringgetExtendedOperationOID()Retrieves the object OID associated with this extended operation.voidinitializeExtendedOperationHandler(GetSymmetricKeyExtendedOperationHandlerCfg config)Initializes this extended operation handler based on the information in the provided configuration entry.voidprocessExtendedOperation(ExtendedOperation operation)Processes the provided extended operation.-
Methods inherited from class org.opends.server.api.ExtendedOperationHandler
finalizeExtendedOperationHandler, getSupportedControls, getSupportedFeatures, isConfigurationAcceptable, supportsControl, supportsFeature
-
-
-
-
Field Detail
-
TYPE_SYMMETRIC_KEY_ELEMENT
public static final byte TYPE_SYMMETRIC_KEY_ELEMENT
The BER type value for the symmetric key element of the operation value.- See Also:
- Constant Field Values
-
TYPE_INSTANCE_KEY_ID_ELEMENT
public static final byte TYPE_INSTANCE_KEY_ID_ELEMENT
The BER type value for the instance key ID element of the operation value.- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeExtendedOperationHandler
public void initializeExtendedOperationHandler(GetSymmetricKeyExtendedOperationHandlerCfg config) throws ConfigException, InitializationException
Initializes this extended operation handler based on the information in the provided configuration entry. It should also register itself with the Directory Server for the particular kinds of extended operations that it will process.- Overrides:
initializeExtendedOperationHandlerin classExtendedOperationHandler<GetSymmetricKeyExtendedOperationHandlerCfg>- Parameters:
config- The extended operation handler configuration that contains the information to use to initialize this extended operation handler.- Throws:
ConfigException- If an unrecoverable problem arises in the process of performing the initialization.InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
processExtendedOperation
public void processExtendedOperation(ExtendedOperation operation)
Processes the provided extended operation.- Specified by:
processExtendedOperationin classExtendedOperationHandler<GetSymmetricKeyExtendedOperationHandlerCfg>- Parameters:
operation- The extended operation to be processed.
-
encodeRequestValue
public static ByteString encodeRequestValue(String symmetricKey, String instanceKeyID)
Encodes the provided information into an ASN.1 octet string suitable for use as the value for this extended operation.- Parameters:
symmetricKey- The wrapped key to use for this request control.instanceKeyID- The requesting server instance key ID to use for this request control.- Returns:
- An ASN.1 octet string containing the encoded request value.
-
getExtendedOperationOID
public String getExtendedOperationOID()
Retrieves the object OID associated with this extended operation.- Overrides:
getExtendedOperationOIDin classExtendedOperationHandler<GetSymmetricKeyExtendedOperationHandlerCfg>- Returns:
- the oid associated with this extended operation, if any, or
nullif there is none.
-
getExtendedOperationName
public String getExtendedOperationName()
Retrieves the name associated with this extended operation.- Overrides:
getExtendedOperationNamein classExtendedOperationHandler<GetSymmetricKeyExtendedOperationHandlerCfg>- Returns:
- The name associated with this extended operation,
if any, or
nullif there is none.
-
-