Package org.keycloak.protocol.oidc
Class OIDCClientSecretConfigWrapper
java.lang.Object
org.keycloak.protocol.oidc.AbstractClientConfigWrapper
org.keycloak.protocol.oidc.OIDCClientSecretConfigWrapper
- Author:
- Marcelo Sales
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Representation of a client model that passes information from a rotated secret. -
Field Summary
Fields inherited from class org.keycloak.protocol.oidc.AbstractClientConfigWrapper
clientModel, clientRep
-
Method Summary
Modifier and TypeMethodDescriptionfromClientModel
(ClientModel client) fromClientRepresentation
(ClientRepresentation clientRep) int
int
int
int
getId()
getName()
boolean
boolean
boolean
boolean
boolean
void
void
void
setClientRotatedSecret
(String secret) void
void
setClientRotatedSecretCreationTime
(Integer rotatedTime) void
setClientRotatedSecretExpirationTime
(Integer expiration) void
void
setClientSecretCreationTime
(int creationTime) void
setClientSecretExpirationTime
(Integer expiration) toJson()
void
boolean
validateRotatedSecret
(String secret) Methods inherited from class org.keycloak.protocol.oidc.AbstractClientConfigWrapper
getAttribute, getAttribute, getAttributeMultivalued, getAttributes, setAttribute, setAttributeMultivalued
-
Method Details
-
fromClientModel
-
fromClientRepresentation
public static OIDCClientSecretConfigWrapper fromClientRepresentation(ClientRepresentation clientRep) -
getSecret
-
getId
-
getName
-
removeClientSecretRotationInfo
public void removeClientSecretRotationInfo() -
removeClientSecretRotated
public void removeClientSecretRotated() -
getClientSecretCreationTime
public int getClientSecretCreationTime() -
setClientSecretCreationTime
public void setClientSecretCreationTime(int creationTime) -
hasRotatedSecret
public boolean hasRotatedSecret() -
getClientRotatedSecret
-
setClientRotatedSecret
-
getClientRotatedSecretCreationTime
public int getClientRotatedSecretCreationTime() -
setClientRotatedSecretCreationTime
-
setClientSecretCreationTime
public void setClientSecretCreationTime() -
setClientRotatedSecretCreationTime
public void setClientRotatedSecretCreationTime() -
updateClientRepresentationAttributes
-
hasClientSecretExpirationTime
public boolean hasClientSecretExpirationTime() -
getClientSecretExpirationTime
public int getClientSecretExpirationTime() -
setClientSecretExpirationTime
-
isClientSecretExpired
public boolean isClientSecretExpired() -
getClientRotatedSecretExpirationTime
public int getClientRotatedSecretExpirationTime() -
setClientRotatedSecretExpirationTime
-
hasClientRotatedSecretExpirationTime
public boolean hasClientRotatedSecretExpirationTime() -
isClientRotatedSecretExpired
public boolean isClientRotatedSecretExpired() -
validateRotatedSecret
-
toJson
-
toRotatedClientModel
public OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel toRotatedClientModel() throws InvalidObjectException- Throws:
InvalidObjectException
-