Package com.sic.plugins.kpp.model
Class KPPKeychain
- java.lang.Object
-
- com.sic.plugins.kpp.model.KPPKeychain
-
- All Implemented Interfaces:
Describable<KPPKeychain>
,Serializable
public final class KPPKeychain extends Object implements Describable<KPPKeychain>, Serializable
Represents a keychain.- Author:
- Michael Bär
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KPPKeychain.DescriptorImpl
Descriptor of theKPPKeychain
.
-
Constructor Summary
Constructors Constructor Description KPPKeychain(String fileName)
ConstructorKPPKeychain(String fileName, String password, String description, List<KPPCertificate> certificates)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<KPPCertificate>
getCertificates()
Get a list ofKPPCertificate
objects.String
getDescription()
Get description.Descriptor
getDescriptor()
Get the descriptor.String
getFileName()
Get keychain filename.String
getPassword()
Get password to unlock keychain.Secret
getPasswordAsSecret()
Get password as secret ot unlock keychain.int
hashCode()
void
setCertificates(List<KPPCertificate> certificates)
Set a list ofKPPCertificate
objects.void
setDescription(String description)
Set description.void
setPassword(String password)
Set keychain password.
-
-
-
Constructor Detail
-
KPPKeychain
public KPPKeychain(String fileName)
Constructor- Parameters:
fileName
- keychain filename
-
KPPKeychain
@DataBoundConstructor public KPPKeychain(String fileName, String password, String description, List<KPPCertificate> certificates)
Constructor- Parameters:
fileName
- keychain filenamepassword
- password to unlock keychaindescription
- additional descriptioncertificates
- list of certificates
-
-
Method Detail
-
getFileName
public final String getFileName()
Get keychain filename.- Returns:
- filename
-
setPassword
public final void setPassword(String password)
Set keychain password.- Parameters:
password
- password as plain text
-
getPassword
public final String getPassword()
Get password to unlock keychain.- Returns:
- password as plain text
-
getPasswordAsSecret
public final Secret getPasswordAsSecret()
Get password as secret ot unlock keychain.- Returns:
- password as secret
-
getDescription
public final String getDescription()
Get description.- Returns:
- description
-
setDescription
public final void setDescription(String description)
Set description.
-
getCertificates
public final List<KPPCertificate> getCertificates()
Get a list ofKPPCertificate
objects.- Returns:
- list of certificates.
-
setCertificates
public final void setCertificates(List<KPPCertificate> certificates)
Set a list ofKPPCertificate
objects.- Parameters:
certificates
- list of certificates
-
getDescriptor
public Descriptor getDescriptor()
Get the descriptor.- Specified by:
getDescriptor
in interfaceDescribable<KPPKeychain>
- Returns:
- descriptor
-
-