Package org.keycloak.protocol.oidc
Class OIDCClientSecretConfigWrapper
- java.lang.Object
-
- org.keycloak.protocol.oidc.AbstractClientConfigWrapper
-
- org.keycloak.protocol.oidc.OIDCClientSecretConfigWrapper
-
public class OIDCClientSecretConfigWrapper extends AbstractClientConfigWrapper
- Author:
- Marcelo Sales
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel
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
-
Methods inherited from class org.keycloak.protocol.oidc.AbstractClientConfigWrapper
getAttribute, getAttribute, getAttributeMultivalued, getAttributes, setAttribute, setAttributeMultivalued
-
-
-
-
Method Detail
-
fromClientModel
public static OIDCClientSecretConfigWrapper fromClientModel(ClientModel client)
-
fromClientRepresentation
public static OIDCClientSecretConfigWrapper fromClientRepresentation(ClientRepresentation clientRep)
-
getSecret
public String getSecret()
-
getId
public String getId()
-
getName
public String getName()
-
removeClientSecretRotationInfo
public void removeClientSecretRotationInfo()
-
removeClientSecretRotated
public void removeClientSecretRotated()
-
getClientSecretCreationTime
public int getClientSecretCreationTime()
-
setClientSecretCreationTime
public void setClientSecretCreationTime(int creationTime)
-
hasRotatedSecret
public boolean hasRotatedSecret()
-
getClientRotatedSecret
public String getClientRotatedSecret()
-
setClientRotatedSecret
public void setClientRotatedSecret(String secret)
-
getClientRotatedSecretCreationTime
public int getClientRotatedSecretCreationTime()
-
setClientRotatedSecretCreationTime
public void setClientRotatedSecretCreationTime(Integer rotatedTime)
-
setClientSecretCreationTime
public void setClientSecretCreationTime()
-
setClientRotatedSecretCreationTime
public void setClientRotatedSecretCreationTime()
-
updateClientRepresentationAttributes
public void updateClientRepresentationAttributes(ClientRepresentation rep)
-
hasClientSecretExpirationTime
public boolean hasClientSecretExpirationTime()
-
getClientSecretExpirationTime
public int getClientSecretExpirationTime()
-
setClientSecretExpirationTime
public void setClientSecretExpirationTime(Integer expiration)
-
isClientSecretExpired
public boolean isClientSecretExpired()
-
getClientRotatedSecretExpirationTime
public int getClientRotatedSecretExpirationTime()
-
setClientRotatedSecretExpirationTime
public void setClientRotatedSecretExpirationTime(Integer expiration)
-
hasClientRotatedSecretExpirationTime
public boolean hasClientRotatedSecretExpirationTime()
-
isClientRotatedSecretExpired
public boolean isClientRotatedSecretExpired()
-
validateRotatedSecret
public boolean validateRotatedSecret(String secret)
-
toJson
public String toJson()
-
toRotatedClientModel
public OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel toRotatedClientModel() throws InvalidObjectException
- Throws:
InvalidObjectException
-
-