Class MaskedPasswordAlgorithmSpec
- java.lang.Object
- 
- org.wildfly.security.password.spec.MaskedPasswordAlgorithmSpec
 
- 
- All Implemented Interfaces:
- AlgorithmParameterSpec
 
 public final class MaskedPasswordAlgorithmSpec extends Object implements AlgorithmParameterSpec An algorithm specification for a two-way password which is masked.- Author:
- David M. Lloyd
 
- 
- 
Field SummaryFields Modifier and Type Field Description private byte[]initializationVectorprivate char[]initialKeyMaterialprivate intiterationCountprivate byte[]salt
 - 
Constructor SummaryConstructors Constructor Description MaskedPasswordAlgorithmSpec(char[] initialKeyMaterial, int iterationCount, byte[] salt)Construct a new instance.MaskedPasswordAlgorithmSpec(char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] initializationVector)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)byte[]getInitializationVector()Get the initialization vector.char[]getInitialKeyMaterial()Get the initial key material.intgetIterationCount()Get the iteration count.byte[]getSalt()Get the salt bytes.inthashCode()
 
- 
- 
- 
Constructor Detail- 
MaskedPasswordAlgorithmSpecpublic MaskedPasswordAlgorithmSpec(char[] initialKeyMaterial, int iterationCount, byte[] salt)Construct a new instance.- Parameters:
- initialKeyMaterial- the initial key material (must not be- null)
- iterationCount- the iteration count
- salt- the salt bytes (must not be- null)
 
 - 
MaskedPasswordAlgorithmSpecpublic MaskedPasswordAlgorithmSpec(char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] initializationVector)Construct a new instance.- Parameters:
- initialKeyMaterial- the initial key material (must not be- null)
- iterationCount- the iteration count
- salt- the salt bytes (must not be- null)
- initializationVector- the initialization vector (can be- null)
 
 
- 
 - 
Method Detail- 
getInitialKeyMaterialpublic char[] getInitialKeyMaterial() Get the initial key material.- Returns:
- the initial key material (must not be null)
 
 - 
getIterationCountpublic int getIterationCount() Get the iteration count.- Returns:
- the iteration count
 
 - 
getSaltpublic byte[] getSalt() Get the salt bytes.- Returns:
- the salt bytes (must not be null)
 
 - 
getInitializationVectorpublic byte[] getInitializationVector() Get the initialization vector.- Returns:
- the initialization vector (can be null)
 
 
- 
 
-