use of org.keycloak.credential.CredentialModel in project keycloak by keycloak.
the class RepresentationToModel method toModel.
public static CredentialModel toModel(CredentialRepresentation cred) {
CredentialModel model = new CredentialModel();
model.setCreatedDate(cred.getCreatedDate());
model.setType(cred.getType());
model.setUserLabel(cred.getUserLabel());
model.setSecretData(cred.getSecretData());
model.setCredentialData(cred.getCredentialData());
model.setId(cred.getId());
return model;
}
Aggregations