Package io.gitea.model
Class CreateKeyOption
java.lang.Object
io.gitea.model.CreateKeyOption
public class CreateKeyOption
extends java.lang.Object
CreateKeyOption options when creating a key
-
Constructor Summary
Constructors Constructor Description CreateKeyOption() -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetKey()An armored SSH key to addjava.lang.StringgetTitle()Title of the key to addinthashCode()java.lang.BooleanisReadOnly()Describe if the key has only read access or read/writeCreateKeyOptionkey(java.lang.String key)CreateKeyOptionreadOnly(java.lang.Boolean readOnly)voidsetKey(java.lang.String key)voidsetReadOnly(java.lang.Boolean readOnly)voidsetTitle(java.lang.String title)CreateKeyOptiontitle(java.lang.String title)java.lang.StringtoString()
-
Constructor Details
-
CreateKeyOption
public CreateKeyOption()
-
-
Method Details
-
key
-
getKey
public java.lang.String getKey()An armored SSH key to add- Returns:
- key
-
setKey
public void setKey(java.lang.String key) -
readOnly
-
isReadOnly
public java.lang.Boolean isReadOnly()Describe if the key has only read access or read/write- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly) -
title
-
getTitle
public java.lang.String getTitle()Title of the key to add- Returns:
- title
-
setTitle
public void setTitle(java.lang.String title) -
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
-