Package com.atlassian.bamboo.security
Class TrustedKeyDTO
- java.lang.Object
-
- com.atlassian.bamboo.security.TrustedKeyDTO
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,TrustedKey
@Immutable public class TrustedKeyDTO extends Object implements TrustedKey
Use for server-agent communication.
-
-
Field Summary
Fields Modifier and Type Field Description static Function<TrustedKey,TrustedKeyDTO>
CONVERTER
-
Constructor Summary
Constructors Constructor Description TrustedKeyDTO()
TrustedKeyDTO(TrustedKey trustedKey)
TrustedKeyDTO(String host, String key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static @NotNull TrustedKey
from(@Nullable String string)
String
getHost()
long
getId()
String
getKey()
int
hashCode()
boolean
isApproved()
void
setId(long id)
-
-
-
Field Detail
-
CONVERTER
public static Function<TrustedKey,TrustedKeyDTO> CONVERTER
-
-
Constructor Detail
-
TrustedKeyDTO
public TrustedKeyDTO(TrustedKey trustedKey)
-
TrustedKeyDTO
public TrustedKeyDTO()
-
-
Method Detail
-
from
@NotNull public static @NotNull TrustedKey from(@Nullable @Nullable String string)
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
setId
public void setId(long id)
- Specified by:
setId
in interfaceBambooObject
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceTrustedKey
-
isApproved
public boolean isApproved()
- Specified by:
isApproved
in interfaceTrustedKey
-
getHost
public String getHost()
- Specified by:
getHost
in interfaceTrustedKey
-
-