Derived PropertyTypes Overview |
|---|
"name [type] [default value]".
Property<?>.Property<K> and returning type <T>.Property<K>, and getting an implementation of TypeFromGeneric<K,T>. Just implement TypeFromGeneric to make a specialized derived type.Derived API classes as type (18) |
|||||
|---|---|---|---|---|---|
| PropertyType options | |||||
| Name | Type | Required | Optional | Value examples | Examples & Links |
| «abstract» AbstractKeyPropertyType |
T |
|
|
[Examples] [API Doc] |
|
| BytesFromFilePropertyType | java.lang.byte[] |
|
[Examples] [API Doc] |
||
| CertificateKeyStoredPropertyType | java.security.cert.Certificate |
|
|
[Examples] [API Doc] |
|
| CertificateSignedFilePropertyType | dk.heick.properties.types.custom.SignedFile |
|
[Examples] [API Doc] |
||
| CertificatesFilePropertyType | java.util.Collection<? extends java.security.cert.Certificate> |
|
|
[Examples] [API Doc] |
|
| «abstract» DerivedFromSinglePropertyType |
T |
|
|
[Examples] [API Doc] |
|
| DerivedFromTypePropertyType | T |
|
|
[Examples] [API Doc] |
|
| «abstract» DerivedPropertyType |
T |
|
|
[Examples] [API Doc] |
|
| FileDerivedPropertyType | T |
|
|
[Examples] [API Doc] |
|
| ImageFromFilePropertyType | java.awt.image.BufferedImage |
|
|
[Examples] [API Doc] |
|
| ImageFromURLPropertyType | java.awt.image.BufferedImage |
|
|
[Examples] [API Doc] |
|
| KeySignedFilePropertyType | dk.heick.properties.types.custom.SignedFile |
|
|
[Examples] [API Doc] |
|
| KeyStoreFilePropertyType | java.security.KeyStore |
|
|
[Examples] [API Doc] |
|
| PrivateKeyFilePropertyType | java.security.PrivateKey |
|
|
[Examples] [API Doc] |
|
| PublicKeyFilePropertyType | java.security.PublicKey |
|
|
[Examples] [API Doc] |
|
| TextFromFilePropertyType | java.lang.String |
|
|
[Examples] [API Doc] |
|
| TypeListFromTextFilePropertyType | java.util.List<T> |
|
|
[Examples] [API Doc] |
|
| URLDerivedPropertyType | T |
|
|
[Examples] [API Doc] |
|
EXAMPLES |
|---|
| Example : AbstractKeyPropertyType | [to type] | [to top] |
|---|---|---|
| Note: Abstract type see inherited implementations. | ||
| Example : BytesFromFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("app.my.byte.file",new FilePropertyType());
Property<byte[]> BYTE_PROPERTY new Property<byte[]>("app.my.byte.stream",new BytesFromFilePropertyType(FILE_PROPERTY));
|
||
| Example : CertificateKeyStoredPropertyType | [to type] | [to top] |
|---|---|---|
Property<File> keyStoreFile = new Property<File>("keystore_file",new FilePropertyType());
Property<PasswordTypeVO> password = new Property<PasswordTypeVO>("password",new PasswordPropertyType());
Property<String> alias = new Property<String>("alias",new StringPropertyType());
//
Property<KeyStore> keystore = new Property<KeyStore>("keystore",new KeyStoreFilePropertyType(keyStoreFile,password));
//
Property<Certificate> certificate1 = new Property<Certificate>("certificate",new CertificateKeyStoredPropertyType(keystore,"ca"));
Property<Certificate> certificate2 = new Property<Certificate>("certificate",new CertificateKeyStoredPropertyType(keystore,alias));
|
||
| Example : CertificateSignedFilePropertyType | [to type] | [to top] |
|---|---|---|
//Certificate
Property<File> keyStoreFile = new Property<File>("keystore_file",new FilePropertyType());
Property<PasswordTypeVO> password = new Property<PasswordTypeVO>("password",new PasswordPropertyType());
Property<KeyStore> keystore = new Property<KeyStore>("keystore",new KeyStoreFilePropertyType(keyStoreFile,password));
Property<Certificate> certificate1 = new Property<Certificate>("certificate",new CertificateKeyStoredPropertyType(keystore,"ca"));
//Signature file
Property<File> signatureFileProperty = new Property<File>("app.my.byte.file",new FilePropertyType());
Property<byte[]> signature = new Property<byte[]>("app.my.byte.stream",new BytesFromFilePropertyType(signatureFileProperty));
//Signed file
Property<File> signedFileProperty = new Property<File>("signed.file",new FilePropertyType());
//Final property
Property<SignedFile> signedFileProperty = new Property<SignedFile>("certifcate.signed.file",new CertificateSignedFilePropertyType(signedFileProperty,certificate1,signature));
|
||
| Example : CertificatesFilePropertyType | [to type] | [to top] |
|---|---|---|
Property |
||
| Example : DerivedFromSinglePropertyType | [to type] | [to top] |
|---|---|---|
| Note: Abstract type see inherited implementations. | ||
| Example : DerivedFromTypePropertyType | [to type] | [to top] |
|---|---|---|
|
||
| Example : DerivedPropertyType | [to type] | [to top] |
|---|---|---|
| Note: Abstract type see inherited implementations. | ||
| Example : FileDerivedPropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("file.property", new FilePropertyType(new File("c:\temp\test.htm"));
Property<String> A_PROPERTY= new Property<StringT>("textfile.derived.property", new FileDerivedPropertyType(FILE_PROPERTY,new TextFromFile()));
|
||
| Example : ImageFromFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("app.my.byte.file",new FilePropertyType());
Property<BufferedImage> IMAGE_PROPERTY new Property<BufferedImage>("app.my.image.stream",new ImageFromFilePropertyType(FILE_PROPERTY));
|
||
| Example : ImageFromURLPropertyType | [to type] | [to top] |
|---|---|---|
Property<URL> URL_PROPERTY = new Property<File>("url.property", new URLPropertyType());
Property<BufferedImage> IMAGE_PROPERTY new Property<BufferedImage>("app.my.image.stream",new ImageFromURLPropertyType(URL_PROPERTY));
|
||
| Example : KeySignedFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> signedDataFile = new Property<File>("p.data.file",new FilePropertyType());
Property<File> publicKeyFile = new Property<File>("p.publickey.file",new FilePropertyType());
Property<File> signatuteFile = new Property<File>("p.signature.file",new FilePropertyType());
//
Property<PublicKey> publicKeyFromFile = new Property<PublicKey>("na.public.key.from.file",new PublicKeyFilePropertyType(publicKeyFile, "DSA"));
Property<byte[]> signatureDataFile = new Property<byte[]>("na.p.signature.data",new BytesFromFilePropertyType(signatuteFile));
//
Property<SignedFile> signedFile = new Property<SignedFile>("signed.file",new KeySignedFilePropertyType(signedDataFile,publicKeyFromFile,signatureDataFile));
|
||
| Example : KeyStoreFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> keyStoreFile = new Property<File>("keystore_file",new FilePropertyType());
Property<PasswordTypeVO> password = new Property<PasswordTypeVO>("password",new PasswordPropertyType());
Property<KeyStore> keystore= new Property<KeyStore>("keystore",new KeyStoreFilePropertyType(keyStoreFile,password));
|
||
| Example : PrivateKeyFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("privatekey.file.property", new FilePropertyType(new File("c:\temp\myprivatekey.ppk"));
Property<PrivateKey> A_PROPERTY= new Property<PrivateKey>("name", new PrivateKeyFilePropertyType(FILE_PROPERTY,"DSA"));
|
||
| Example : PublicKeyFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("publickey.file.property", new FilePropertyType(new File("c:\temp\mypublickey.pub"));
Property<PublicKey> A_PROPERTY= new Property<PublicKey>("name", new PublicKeyFilePropertyType(FILE_PROPERTY,"DSA"));
|
||
| Example : TextFromFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("file.property", new FilePropertyType(new File("c:\temp\test.htm"));
Property<String> A_PROPERTY= new Property<String>("name", new TextFromFilePropertyType(FILE_PROPERTY));
|
||
| Example : TypeListFromTextFilePropertyType | [to type] | [to top] |
|---|---|---|
Property<File> FILE_PROPERTY = new Property<File>("file.property", new FilePropertyType());
Property<List<URL>> URL_LIST_PROPERTY = new Property<List<URL>>("url.list", new TypeListFromTextFilePropertyType<URL>(FILE_PROPERTY, new URLPropertyType());
|
||
| Example : URLDerivedPropertyType | [to type] | [to top] |
|---|---|---|
Property<T> A_PROPERTY= new Property<T>("name", new URLDerivedPropertyType());
|
||