Package io.gitea.model
Class GPGKey
- java.lang.Object
-
- io.gitea.model.GPGKey
-
public class GPGKey extends java.lang.ObjectGPGKey a user GPG key to sign commit and tag in repository
-
-
Constructor Summary
Constructors Constructor Description GPGKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GPGKeyaddEmailsItem(GPGKeyEmail emailsItem)GPGKeyaddSubkeysItem(GPGKey subkeysItem)GPGKeycanCertify(java.lang.Boolean canCertify)GPGKeycanEncryptComms(java.lang.Boolean canEncryptComms)GPGKeycanEncryptStorage(java.lang.Boolean canEncryptStorage)GPGKeycanSign(java.lang.Boolean canSign)GPGKeycreatedAt(org.threeten.bp.OffsetDateTime createdAt)GPGKeyemails(java.util.List<GPGKeyEmail> emails)booleanequals(java.lang.Object o)GPGKeyexpiresAt(org.threeten.bp.OffsetDateTime expiresAt)org.threeten.bp.OffsetDateTimegetCreatedAt()Get createdAtjava.util.List<GPGKeyEmail>getEmails()Get emailsorg.threeten.bp.OffsetDateTimegetExpiresAt()Get expiresAtjava.lang.LonggetId()Get idjava.lang.StringgetKeyId()Get keyIdjava.lang.StringgetPrimaryKeyId()Get primaryKeyIdjava.lang.StringgetPublicKey()Get publicKeyjava.util.List<GPGKey>getSubkeys()Get subkeysinthashCode()GPGKeyid(java.lang.Long id)java.lang.BooleanisCanCertify()Get canCertifyjava.lang.BooleanisCanEncryptComms()Get canEncryptCommsjava.lang.BooleanisCanEncryptStorage()Get canEncryptStoragejava.lang.BooleanisCanSign()Get canSignjava.lang.BooleanisVerified()Get verifiedGPGKeykeyId(java.lang.String keyId)GPGKeyprimaryKeyId(java.lang.String primaryKeyId)GPGKeypublicKey(java.lang.String publicKey)voidsetCanCertify(java.lang.Boolean canCertify)voidsetCanEncryptComms(java.lang.Boolean canEncryptComms)voidsetCanEncryptStorage(java.lang.Boolean canEncryptStorage)voidsetCanSign(java.lang.Boolean canSign)voidsetCreatedAt(org.threeten.bp.OffsetDateTime createdAt)voidsetEmails(java.util.List<GPGKeyEmail> emails)voidsetExpiresAt(org.threeten.bp.OffsetDateTime expiresAt)voidsetId(java.lang.Long id)voidsetKeyId(java.lang.String keyId)voidsetPrimaryKeyId(java.lang.String primaryKeyId)voidsetPublicKey(java.lang.String publicKey)voidsetSubkeys(java.util.List<GPGKey> subkeys)voidsetVerified(java.lang.Boolean verified)GPGKeysubkeys(java.util.List<GPGKey> subkeys)java.lang.StringtoString()GPGKeyverified(java.lang.Boolean verified)
-
-
-
Method Detail
-
canCertify
public GPGKey canCertify(java.lang.Boolean canCertify)
-
isCanCertify
public java.lang.Boolean isCanCertify()
Get canCertify- Returns:
- canCertify
-
setCanCertify
public void setCanCertify(java.lang.Boolean canCertify)
-
canEncryptComms
public GPGKey canEncryptComms(java.lang.Boolean canEncryptComms)
-
isCanEncryptComms
public java.lang.Boolean isCanEncryptComms()
Get canEncryptComms- Returns:
- canEncryptComms
-
setCanEncryptComms
public void setCanEncryptComms(java.lang.Boolean canEncryptComms)
-
canEncryptStorage
public GPGKey canEncryptStorage(java.lang.Boolean canEncryptStorage)
-
isCanEncryptStorage
public java.lang.Boolean isCanEncryptStorage()
Get canEncryptStorage- Returns:
- canEncryptStorage
-
setCanEncryptStorage
public void setCanEncryptStorage(java.lang.Boolean canEncryptStorage)
-
canSign
public GPGKey canSign(java.lang.Boolean canSign)
-
isCanSign
public java.lang.Boolean isCanSign()
Get canSign- Returns:
- canSign
-
setCanSign
public void setCanSign(java.lang.Boolean canSign)
-
createdAt
public GPGKey createdAt(org.threeten.bp.OffsetDateTime createdAt)
-
getCreatedAt
public org.threeten.bp.OffsetDateTime getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(org.threeten.bp.OffsetDateTime createdAt)
-
emails
public GPGKey emails(java.util.List<GPGKeyEmail> emails)
-
addEmailsItem
public GPGKey addEmailsItem(GPGKeyEmail emailsItem)
-
getEmails
public java.util.List<GPGKeyEmail> getEmails()
Get emails- Returns:
- emails
-
setEmails
public void setEmails(java.util.List<GPGKeyEmail> emails)
-
expiresAt
public GPGKey expiresAt(org.threeten.bp.OffsetDateTime expiresAt)
-
getExpiresAt
public org.threeten.bp.OffsetDateTime getExpiresAt()
Get expiresAt- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(org.threeten.bp.OffsetDateTime expiresAt)
-
id
public GPGKey id(java.lang.Long id)
-
getId
public java.lang.Long getId()
Get id- Returns:
- id
-
setId
public void setId(java.lang.Long id)
-
keyId
public GPGKey keyId(java.lang.String keyId)
-
getKeyId
public java.lang.String getKeyId()
Get keyId- Returns:
- keyId
-
setKeyId
public void setKeyId(java.lang.String keyId)
-
primaryKeyId
public GPGKey primaryKeyId(java.lang.String primaryKeyId)
-
getPrimaryKeyId
public java.lang.String getPrimaryKeyId()
Get primaryKeyId- Returns:
- primaryKeyId
-
setPrimaryKeyId
public void setPrimaryKeyId(java.lang.String primaryKeyId)
-
publicKey
public GPGKey publicKey(java.lang.String publicKey)
-
getPublicKey
public java.lang.String getPublicKey()
Get publicKey- Returns:
- publicKey
-
setPublicKey
public void setPublicKey(java.lang.String publicKey)
-
getSubkeys
public java.util.List<GPGKey> getSubkeys()
Get subkeys- Returns:
- subkeys
-
setSubkeys
public void setSubkeys(java.util.List<GPGKey> subkeys)
-
verified
public GPGKey verified(java.lang.Boolean verified)
-
isVerified
public java.lang.Boolean isVerified()
Get verified- Returns:
- verified
-
setVerified
public void setVerified(java.lang.Boolean verified)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-