|
common-util | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlocal.tomas.license.License
public final class License
This is the license bean.
| Constructor Summary | |
|---|---|
License()
|
|
| Method Summary | |
|---|---|
String |
getAttribute(String name)
Get extra attribute. |
int |
getAttributeCount()
Get number of extra attributes |
Collection<String> |
getAttributeNames()
Get names of extra attributes. |
X509Certificate |
getCertificate()
Get certificate this license was signed with. |
String |
getLicensee()
Get licensee. |
String |
getSerial()
Get serial number. |
byte[] |
getSignable()
Get hash value to be signed. |
Date |
getValidFrom()
Get start of validity interval. |
Date |
getValidUntil()
Get end of validity interval. |
boolean |
isSigned()
Check if license is signed. |
String |
removeAttribute(String name)
Remove extra attribute. |
void |
removeSignature()
Remove signature of license. |
void |
setAttribute(String name,
String value)
Set extra attribute. |
void |
setCertificate(X509Certificate certificate)
Set certificate this license must be signed with. |
void |
setLicensee(String licensee)
Set licensee. |
void |
setSerial(String serial)
Set serial number. |
void |
setSignature(byte[] signature)
Set signature of license. |
void |
setValidFrom(Date validFrom)
Set start of validity interval. |
void |
setValidUntil(Date validUntil)
Set end of validity interval. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public License()
| Method Detail |
|---|
public String getLicensee()
public void setLicensee(String licensee)
licensee - licensee namepublic String getSerial()
public void setSerial(String serial)
serial - serial numberpublic Date getValidFrom()
public void setValidFrom(Date validFrom)
validFrom - start of validity intervalpublic Date getValidUntil()
public void setValidUntil(Date validUntil)
validUntil - end of validity intervalpublic X509Certificate getCertificate()
public void setCertificate(X509Certificate certificate)
certificate - certificatepublic String getAttribute(String name)
name - attribute name
public int getAttributeCount()
public Collection<String> getAttributeNames()
public void setAttribute(String name,
String value)
name - attribute namevalue - attribute valuepublic String removeAttribute(String name)
name - attribute name
public boolean isSigned()
public void setSignature(byte[] signature)
signature - the signaturepublic void removeSignature()
public byte[] getSignable()
throws IOException
IOException
|
common-util | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||