Package io.jans.as.model.crypto
Class Key<E extends PrivateKey,F extends PublicKey>
- java.lang.Object
-
- io.jans.as.model.crypto.Key<E,F>
-
- All Implemented Interfaces:
JSONable
public class Key<E extends PrivateKey,F extends PublicKey> extends Object implements JSONable
- Version:
- February 17, 2016
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description Key()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
Certificate
getCertificate()
Object
getCurve()
Long
getExpirationTime()
String
getKeyId()
String
getKeyType()
E
getPrivateKey()
F
getPublicKey()
String
getUse()
void
setAlgorithm(String algorithm)
void
setCertificate(Certificate certificate)
void
setCurve(Object curve)
void
setExpirationTime(Long expirationTime)
void
setKeyId(String keyId)
void
setKeyType(String keyType)
void
setPrivateKey(E privateKey)
void
setPublicKey(F publicKey)
void
setUse(String use)
org.json.JSONObject
toJSONObject()
String
toString()
-
-
-
Method Detail
-
getKeyType
public String getKeyType()
-
setKeyType
public void setKeyType(String keyType)
-
getUse
public String getUse()
-
setUse
public void setUse(String use)
-
getAlgorithm
public String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(String algorithm)
-
getKeyId
public String getKeyId()
-
setKeyId
public void setKeyId(String keyId)
-
getExpirationTime
public Long getExpirationTime()
-
setExpirationTime
public void setExpirationTime(Long expirationTime)
-
getCurve
public Object getCurve()
-
setCurve
public void setCurve(Object curve)
-
getPrivateKey
public E getPrivateKey()
-
setPrivateKey
public void setPrivateKey(E privateKey)
-
getPublicKey
public F getPublicKey()
-
setPublicKey
public void setPublicKey(F publicKey)
-
getCertificate
public Certificate getCertificate()
-
setCertificate
public void setCertificate(Certificate certificate)
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONException
- Specified by:
toJSONObject
in interfaceJSONable
- Throws:
org.json.JSONException
-
-