public class PublicKey extends Object implements Serializable, Cloneable
Contains information about a returned public key.
Constructor and Description |
---|
PublicKey() |
Modifier and Type | Method and Description |
---|---|
PublicKey |
clone() |
boolean |
equals(Object obj) |
String |
getFingerprint()
The fingerprint of the public key.
|
Date |
getValidityEndTime()
The ending time of validity of the public key.
|
Date |
getValidityStartTime()
The starting time of validity of the public key.
|
ByteBuffer |
getValue()
The DER encoded public key value in PKCS#1 format.
|
int |
hashCode() |
void |
setFingerprint(String fingerprint)
The fingerprint of the public key.
|
void |
setValidityEndTime(Date validityEndTime)
The ending time of validity of the public key.
|
void |
setValidityStartTime(Date validityStartTime)
The starting time of validity of the public key.
|
void |
setValue(ByteBuffer value)
The DER encoded public key value in PKCS#1 format.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PublicKey |
withFingerprint(String fingerprint)
The fingerprint of the public key.
|
PublicKey |
withValidityEndTime(Date validityEndTime)
The ending time of validity of the public key.
|
PublicKey |
withValidityStartTime(Date validityStartTime)
The starting time of validity of the public key.
|
PublicKey |
withValue(ByteBuffer value)
The DER encoded public key value in PKCS#1 format.
|
public ByteBuffer getValue()
public void setValue(ByteBuffer value)
value
- The DER encoded public key value in PKCS#1 format.public PublicKey withValue(ByteBuffer value)
Returns a reference to this object so that method calls can be chained together.
value
- The DER encoded public key value in PKCS#1 format.public Date getValidityStartTime()
public void setValidityStartTime(Date validityStartTime)
validityStartTime
- The starting time of validity of the public key.public PublicKey withValidityStartTime(Date validityStartTime)
Returns a reference to this object so that method calls can be chained together.
validityStartTime
- The starting time of validity of the public key.public Date getValidityEndTime()
public void setValidityEndTime(Date validityEndTime)
validityEndTime
- The ending time of validity of the public key.public PublicKey withValidityEndTime(Date validityEndTime)
Returns a reference to this object so that method calls can be chained together.
validityEndTime
- The ending time of validity of the public key.public String getFingerprint()
public void setFingerprint(String fingerprint)
fingerprint
- The fingerprint of the public key.public PublicKey withFingerprint(String fingerprint)
Returns a reference to this object so that method calls can be chained together.
fingerprint
- The fingerprint of the public key.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.