Package org.xipki.ca.gateway.acme
Class AcmeAccount
- java.lang.Object
-
- org.xipki.ca.gateway.acme.AcmeAccount
-
public class AcmeAccount extends Object
- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAcmeAccount.Data
-
Constructor Summary
Constructors Constructor Description AcmeAccount(long id, AcmeDataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()List<String>getContact()AcmeAccount.DatagetData()JoseMessagegetExternalAccountBinding()longgetId()StringgetJwkSha256()StringgetLocation(String baseUrl)PublicKeygetPublicKey()AccountStatusgetStatus()BooleangetTermsOfServiceAgreed()booleanhasJwk(Map<String,String> jwk)StringidText()voidmark()voidsetContact(List<String> contact)voidsetData(AcmeAccount.Data data)voidsetExternalAccountBinding(JoseMessage externalAccountBinding)voidsetInDb(boolean inDb)voidsetJwk(Map<String,String> jwk)voidsetJwkSha256(String jwkSha256)voidsetStatus(AccountStatus status)voidsetTermsOfServiceAgreed(Boolean termsOfServiceAgreed)AccountResponsetoResponse(String baseUrl)
-
-
-
Constructor Detail
-
AcmeAccount
public AcmeAccount(long id, AcmeDataSource dataSource)
-
-
Method Detail
-
setInDb
public void setInDb(boolean inDb)
-
getId
public long getId()
-
idText
public String idText()
-
getJwkSha256
public String getJwkSha256()
-
setJwkSha256
public void setJwkSha256(String jwkSha256)
-
getPublicKey
public PublicKey getPublicKey() throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
-
getStatus
public AccountStatus getStatus()
-
setStatus
public void setStatus(AccountStatus status)
-
getData
public AcmeAccount.Data getData()
-
setData
public void setData(AcmeAccount.Data data)
-
getExternalAccountBinding
public JoseMessage getExternalAccountBinding()
-
setExternalAccountBinding
public void setExternalAccountBinding(JoseMessage externalAccountBinding)
-
getTermsOfServiceAgreed
public Boolean getTermsOfServiceAgreed()
-
setTermsOfServiceAgreed
public void setTermsOfServiceAgreed(Boolean termsOfServiceAgreed)
-
toResponse
public AccountResponse toResponse(String baseUrl)
-
mark
public void mark()
-
flush
public void flush() throws AcmeSystemException- Throws:
AcmeSystemException
-
-