Package jadex.commons.security
Class PemKeyPair
- java.lang.Object
-
- jadex.commons.security.PemKeyPair
-
public class PemKeyPair extends java.lang.Object
PEM-encoded key/certificate pair.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
certificate
The encoded certificate.protected java.lang.String
key
The encoded key.
-
Constructor Summary
Constructors Constructor Description PemKeyPair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Equals method.java.lang.String
getCertificate()
Gets encoded certificate.java.lang.String
getKey()
Gets encoded key.int
hashCode()
Hashcode.void
setCertificate(java.lang.String certificate)
Sets encoded certificate.void
setKey(java.lang.String key)
Sets encoded key.java.lang.String
toString()
toString()
-
-
-
Method Detail
-
getCertificate
public java.lang.String getCertificate()
Gets encoded certificate.- Returns:
- Encoded certificate.
-
setCertificate
public void setCertificate(java.lang.String certificate)
Sets encoded certificate.- Parameters:
certificate
- Encoded certificate.
-
getKey
public java.lang.String getKey()
Gets encoded key.- Returns:
- Encoded key.
-
setKey
public void setKey(java.lang.String key)
Sets encoded key.- Parameters:
key
- Encoded key.
-
hashCode
public int hashCode()
Hashcode.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Equals method.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
toString()- Overrides:
toString
in classjava.lang.Object
-
-