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 booleanequals(Object o)static @NotNull TrustedKeyfrom(@Nullable String string)StringgetHost()longgetId()StringgetKey()inthashCode()booleanisApproved()voidsetId(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:
getIdin interfaceBambooIdProvider
-
setId
public void setId(long id)
- Specified by:
setIdin interfaceBambooObject
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceTrustedKey
-
isApproved
public boolean isApproved()
- Specified by:
isApprovedin interfaceTrustedKey
-
getHost
public String getHost()
- Specified by:
getHostin interfaceTrustedKey
-
-