public class GetUsageRightsResult extends Object implements Serializable
Constructor and Description |
---|
GetUsageRightsResult(UsageRights rights,
Date notBefore,
Date notAfter,
boolean evaluation)
Not for use by a client application.
|
Modifier and Type | Method and Description |
---|---|
String |
getIntendedUse()
Returns legal intended use notice of the certificate.
|
String |
getMessage()
Returns the message that is displayed within Adobe Reader when the PDF document is opened.
|
Date |
getNotAfter()
Returns the date after which the certificate is no longer valid.
|
Date |
getNotBefore()
Returns the date before which the certificate is not valid.
|
String |
getProfile()
Returns profile string of the certificate.
|
UsageRights |
getRights()
Returns the
UsageRights object that is enabled by the certificate. |
int |
getUseCount()
Returns the number of times a given credential has been used.
|
boolean |
isEvaluation() |
void |
setEvaluation(boolean evaluation) |
void |
setIntendedUse(String intendedUse)
Not for use by a client application.
|
void |
setMessage(String message)
Not for use by a client application.
|
void |
setNotAfter(Date notAfter)
Set the date after which the certificate is no longer valid.
|
void |
setNotBefore(Date notBefore)
Set the date before which the certificate is not valid.
|
void |
setProfile(String profile)
Not for use by a client application.
|
void |
setRights(UsageRights rights)
Set the
UsageRights object that is enabled by the certificate. |
void |
setUseCount(int useCount)
Not for use by a client application.
|
String |
toString() |
public GetUsageRightsResult(UsageRights rights, Date notBefore, Date notAfter, boolean evaluation)
rights
- the UsageRightsnotBefore
- the credential start datenotAfter
- the credential expiration dateevaluation
- whether this credential is evaluationpublic Date getNotAfter()
public void setNotAfter(Date notAfter)
notAfter
- the notAfter to setpublic Date getNotBefore()
public void setNotBefore(Date notBefore)
notBefore
- the notBefore to setpublic UsageRights getRights()
UsageRights
object that is enabled by the certificate.UsageRights
object that is enabled by the certificate.public void setRights(UsageRights rights)
UsageRights
object that is enabled by the certificate.rights
- the rights to setpublic int getUseCount()
public void setUseCount(int useCount)
public String getMessage()
public void setMessage(String message)
public String getProfile()
public void setProfile(String profile)
public String toString()
public String getIntendedUse()
public void setIntendedUse(String intendedUse)
intendedUse
- the intended use messagepublic boolean isEvaluation()
public void setEvaluation(boolean evaluation)
evaluation
- the evaluation to setCopyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.