Class PasswordModifyFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.pwdModify.PasswordModifyFactory
-
- All Implemented Interfaces:
ExtendedOperationFactory
public class PasswordModifyFactory extends AbstractExtendedOperationFactory
AnExtendedOperationFactoryfor creating PwdModify extended request response pairs.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
codec, LOG, oid
-
-
Constructor Summary
Constructors Constructor Description PasswordModifyFactory(LdapApiService codec)Creates a new instance of PasswordModifyFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecodeValue(ExtendedRequest extendedRequest, byte[] requestValue)Decode the value part of the extended request operation.voiddecodeValue(ExtendedResponse extendedResponse, byte[] responseValue)Decode the value part of the extended response operation.voidencodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)Encode the value part of the extended request operation.voidencodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)Encode the value part of the extended response operation.PasswordModifyRequestnewRequest()Returns a newExtendedRequestwith no valuePasswordModifyRequestnewRequest(byte[] encodedValue)Returns a newExtendedRequestwith the following encoded value.PasswordModifyResponsenewResponse()Creates a new ExtendedResponse, for the ExtendedRequest with no valuePasswordModifyResponsenewResponse(byte[] encodedValue)Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.-
Methods inherited from class org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
getOid
-
-
-
-
Constructor Detail
-
PasswordModifyFactory
public PasswordModifyFactory(LdapApiService codec)
Creates a new instance of PasswordModifyFactory.- Parameters:
codec- The codec for this factory.
-
-
Method Detail
-
newRequest
public PasswordModifyRequest newRequest()
Returns a newExtendedRequestwith no value- Returns:
- the decorator for the extended request type
-
newRequest
public PasswordModifyRequest newRequest(byte[] encodedValue) throws DecoderException
Returns a newExtendedRequestwith the following encoded value.- Specified by:
newRequestin interfaceExtendedOperationFactory- Overrides:
newRequestin classAbstractExtendedOperationFactory- Parameters:
encodedValue- the encoded value- Returns:
- the decorator for the extended request type
- Throws:
DecoderException- If we can't decode the response
-
newResponse
public PasswordModifyResponse newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value- Returns:
- The new ExtendedResponse.
-
newResponse
public PasswordModifyResponse newResponse(byte[] encodedValue) throws DecoderException
Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.- Specified by:
newResponsein interfaceExtendedOperationFactory- Overrides:
newResponsein classAbstractExtendedOperationFactory- Parameters:
encodedValue- The encoded value for the ExtendedResponse instance.- Returns:
- The new ExtendedResponse.
- Throws:
DecoderException- If we can't decode the response
-
decodeValue
public void decodeValue(ExtendedRequest extendedRequest, byte[] requestValue) throws DecoderException
Decode the value part of the extended request operation.- Specified by:
decodeValuein interfaceExtendedOperationFactory- Overrides:
decodeValuein classAbstractExtendedOperationFactory- Parameters:
extendedRequest- The ExtendedRequest Operation to feedrequestValue- The request value to decode- Throws:
DecoderException- If the value cannot be decoded
-
encodeValue
public void encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.- Specified by:
encodeValuein interfaceExtendedOperationFactory- Overrides:
encodeValuein classAbstractExtendedOperationFactory- Parameters:
buffer- The buffer into which to put the encoded valueextendedRequest- The ExtendedRequest Operation to encode
-
decodeValue
public void decodeValue(ExtendedResponse extendedResponse, byte[] responseValue) throws DecoderException
Decode the value part of the extended response operation.- Specified by:
decodeValuein interfaceExtendedOperationFactory- Overrides:
decodeValuein classAbstractExtendedOperationFactory- Parameters:
extendedResponse- The ExtendedResponse Operation to feedresponseValue- The response value to decode- Throws:
DecoderException- If the value cannot be decoded
-
encodeValue
public void encodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)
Encode the value part of the extended response operation.- Specified by:
encodeValuein interfaceExtendedOperationFactory- Overrides:
encodeValuein classAbstractExtendedOperationFactory- Parameters:
buffer- The buffer into which to put the encoded valueextendedResponse- The ExtendedResponse Operation to encode
-
-