Package com.exedio.cope.pattern
Class DrivebyHashMigration
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.DrivebyHashMigration
- All Implemented Interfaces:
HashInterface,Settable<String>,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanSetValue<?>[]Returns the exceptions possibly thrown, when setting a value for this settable.booleanisFinal()Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.booleanReturns true, if a value for the settable should be specified on the creation of an item.booleanbooleannewRandomPassword(SecureRandom random) voidMethods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSourceMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Constructor Details
-
DrivebyHashMigration
- Parameters:
legacy- the algorithm the passwords are currently hashed withtarget- the algorithm the passwords are to be hashed with in the future
-
-
Method Details
-
getLegacyHash
-
getTargetHash
-
check
- Specified by:
checkin interfaceHashInterface
-
isNull
- Specified by:
isNullin interfaceHashInterface
-
getHash
- Specified by:
getHashin interfaceHashInterface
-
blind
- Specified by:
blindin interfaceHashInterface
-
newRandomPassword
- Specified by:
newRandomPasswordin interfaceHashInterface
-
set
- Specified by:
setin interfaceHashInterface
-
execute
-
isFinal
public boolean isFinal()Description copied from interface:SettableReturns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later. -
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceSettable<String>
-
getInitialType
- Specified by:
getInitialTypein interfaceSettable<String>
-
isInitial
public boolean isInitial()Description copied from interface:SettableReturns true, if a value for the settable should be specified on the creation of an item. -
getInitialExceptions
Description copied from interface:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<String>
-