Class OneTimePasswordAlgorithmParametersSpiImpl
java.lang.Object
java.security.AlgorithmParametersSpi
org.wildfly.security.util.AbstractAlgorithmParametersSpiImpl<OneTimePasswordAlgorithmSpec>
org.wildfly.security.password.impl.OneTimePasswordAlgorithmParametersSpiImpl
public final class OneTimePasswordAlgorithmParametersSpiImpl
extends AbstractAlgorithmParametersSpiImpl<OneTimePasswordAlgorithmSpec>
An implementation of the
AlgorithmParametersSpi SPI, in order to support encoding and decoding of
password algorithm parameters.- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OneTimePasswordAlgorithmSpecengineDecode(ASN1Decoder decoder) Decode a parameter instance.protected voidengineEncode(ASN1Encoder encoder, OneTimePasswordAlgorithmSpec parameterSpec) Encode a parameter instance.protected Class<OneTimePasswordAlgorithmSpec>Get the type of parameters for this class.Methods inherited from class org.wildfly.security.util.AbstractAlgorithmParametersSpiImpl
engineGetEncoded, engineGetEncoded, engineGetParameterSpec, engineInit, engineInit, engineInit, engineToString
-
Constructor Details
-
OneTimePasswordAlgorithmParametersSpiImpl
public OneTimePasswordAlgorithmParametersSpiImpl()Construct a new instance.
-
-
Method Details
-
getParameterType
Description copied from class:AbstractAlgorithmParametersSpiImplGet the type of parameters for this class.- Specified by:
getParameterTypein classAbstractAlgorithmParametersSpiImpl<OneTimePasswordAlgorithmSpec>- Returns:
- the type of parameters for this class (must not be
null)
-
engineEncode
Description copied from class:AbstractAlgorithmParametersSpiImplEncode a parameter instance.- Specified by:
engineEncodein classAbstractAlgorithmParametersSpiImpl<OneTimePasswordAlgorithmSpec>- Parameters:
encoder- the encoder to use (notnull)parameterSpec- the parameter instance (notnull)
-
engineDecode
Description copied from class:AbstractAlgorithmParametersSpiImplDecode a parameter instance. Subclasses should ensure that all elements are consumed (including sequence terminators and so forth).- Specified by:
engineDecodein classAbstractAlgorithmParametersSpiImpl<OneTimePasswordAlgorithmSpec>- Parameters:
decoder- the decoder to use (notnull)- Returns:
- the parameter instance (must not be
null)
-