class WorkloadCredentialConverter {

    public WorkloadCredential toWorkloadCredential(
            UserManagementProto.ActorWorkloadCredentials actorWorkloadCredentials) {
        return new WorkloadCredential(actorWorkloadCredentials.getPasswordHash(),
                actorWorkloadCredentials.getKerberosKeysList(),
                toOptionalInstant(actorWorkloadCredentials.getPasswordHashExpirationDate()),
                actorWorkloadCredentials.getSshPublicKeyList());
    }

}