T
- PublicKey (subject) or PrivateKey (issuer)public abstract class CertificateEntity<T extends Key> extends Object
Constructor and Description |
---|
CertificateEntity()
Creates a CertificateEntity with the default name, organization and country as well as a null key.
|
CertificateEntity(String name,
String organization,
String country,
T key)
Create a CertificateEntity with the given values.
|
CertificateEntity(String name,
T key)
Creates a CertificateEntity with the given name and key as well as default organization and country.
|
Modifier and Type | Method and Description |
---|---|
String |
getCountry()
Get the country of the entity.
|
T |
getKey()
Get the key of the entity.
|
String |
getName()
Get the name of the entity.
|
String |
getOrganization()
Get the organization of the entity.
|
void |
setCountry(String country)
Set the country of the entity.
|
void |
setKey(T key)
Set the key of the entity.
|
void |
setName(String name)
Set the name of the entity.
|
void |
setOrganization(String organization)
Set the organization of the entity.
|
public CertificateEntity()
public CertificateEntity(String name, T key)
name
- the name of the entitykey
- the key fo the entitypublic CertificateEntity(String name, String organization, String country, T key)
name
- the name of the entityorganization
- the organization of the entitycountry
- the country of the entitykey
- the key of the entitypublic String getName()
public void setName(String name)
name
- the name of the entitypublic String getOrganization()
public void setOrganization(String organization)
organization
- the organization of the entitypublic String getCountry()
public void setCountry(String country)
country
- the country of the entitypublic T getKey()
public void setKey(T key)
key
- the key of the entityCopyright © 2021. All rights reserved.