Class EncryptedStringAttribute
- java.lang.Object
-
- io.github.factoryfx.factory.attribute.Attribute<T,A>
-
- io.github.factoryfx.factory.attribute.ImmutableValueAttribute<EncryptedString,EncryptedStringAttribute>
-
- io.github.factoryfx.factory.attribute.types.EncryptedStringAttribute
-
- All Implemented Interfaces:
AttributeCopy<EncryptedString>,AttributeMatch<EncryptedString>,AttributeMerger<EncryptedString>,AttributeValue<EncryptedString>
public class EncryptedStringAttribute extends ImmutableValueAttribute<EncryptedString,EncryptedStringAttribute>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncryptedStringAttribute.KeyValidator
-
Field Summary
-
Fields inherited from class io.github.factoryfx.factory.attribute.ImmutableValueAttribute
value
-
-
Constructor Summary
Constructors Constructor Description EncryptedStringAttribute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcreateKey()java.lang.Stringdecrypt(java.lang.String key)EncryptedStringAttributeencrypt(java.lang.String value, java.lang.String key)booleaninternal_isValidKey(java.lang.String key)booleanisLongText()EncryptedStringAttributelongText()for long text textarea instead of textfield is used for editingEncryptedStringAttributeset(java.lang.String value, java.lang.String key)-
Methods inherited from class io.github.factoryfx.factory.attribute.ImmutableValueAttribute
defaultValue, get, getDisplayText, getNullable, getValue, internal_addBackReferences, internal_copyTo, internal_mergeMatch, internal_required, internal_reset, internal_semanticCopyTo, internal_validate, nullable, set, setValue
-
Methods inherited from class io.github.factoryfx.factory.attribute.Attribute
addonText, createAttributeStorageMetadata, de, en, es, fr, internal_addListener, internal_endUsage, internal_getAddonText, internal_getListeners, internal_getPreferredLabelText, internal_getPreferredTooltipText, internal_hasWritePermission, internal_isUserReadOnly, internal_merge, internal_removeAllListener, internal_removeListener, it, labelText, labelText, listenersEmpty, permission, pt, tooltipDe, tooltipEn, updateListeners, userReadOnly, userReadOnly, validation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMatch
internal_referenceEquals, internal_referenceListEquals
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMerger
internal_mergeFactoryList
-
-
-
-
Method Detail
-
longText
public EncryptedStringAttribute longText()
for long text textarea instead of textfield is used for editing- Returns:
- self
-
isLongText
public boolean isLongText()
-
createKey
public static java.lang.String createKey()
-
encrypt
public EncryptedStringAttribute encrypt(java.lang.String value, java.lang.String key)
-
set
public EncryptedStringAttribute set(java.lang.String value, java.lang.String key)
-
decrypt
public java.lang.String decrypt(java.lang.String key)
-
internal_isValidKey
public boolean internal_isValidKey(java.lang.String key)
-
-