public enum KeepSAMLimpl extends java.lang.Enum<KeepSAMLimpl> implements KeepSAML
| Enum Constant and Description |
|---|
INSTANCE
Singleton through enum
|
| Modifier and Type | Method and Description |
|---|---|
void |
freeUserIdHandle(java.lang.String userName)
Deallocate memory for user id file
|
java.lang.String |
getErrorString(short status)
Get the notes error message from a status code
|
com.sun.jna.Pointer |
getKFHandle(java.lang.String idfile)
Given a user id file name, convert to KFHANDLE
|
java.lang.String |
getPrivKey()
return Keep instance private key
|
java.lang.String |
getPubKey()
return Keep instance public key
|
static java.lang.String |
getServerHTTPName(java.lang.String dnName)
Given a Notes DN-formatted server name, find the http name
|
java.lang.String |
getX509Cert() |
java.util.Optional<SamlUserId> |
lookupUserId(java.lang.String dominoName)
Checks for a SamlUserId
|
void |
releaseAllIDs()
Delete all cached id files
|
short |
retrieveUserID(java.lang.String userEmail,
java.lang.String dominoName,
java.lang.String currentClaim)
Retrieve the user id using a SAML dance.
|
void |
setPrivKey(java.lang.String privKey)
store Keep private key
|
void |
setPubKey(java.lang.String pubKey)
store Keep public key
|
void |
setX509Cert(java.lang.String x509Cert)
store Keep public certificate
|
static KeepSAMLimpl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeepSAMLimpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeepSAMLimpl INSTANCE
public static KeepSAMLimpl[] values()
for (KeepSAMLimpl c : KeepSAMLimpl.values()) System.out.println(c);
public static KeepSAMLimpl valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.lang.String getServerHTTPName(java.lang.String dnName)
Given a Notes DN-formatted server name, find the http name
dnName - Domino name formatpublic void freeUserIdHandle(java.lang.String userName)
Deallocate memory for user id file
freeUserIdHandle in interface KeepSAMLuserName - Domino name in abbreviated formpublic java.lang.String getErrorString(short status)
Get the notes error message from a status code
getErrorString in interface KeepSAMLstatus - error codepublic com.sun.jna.Pointer getKFHandle(java.lang.String idfile)
Given a user id file name, convert to KFHANDLE
getKFHandle in interface KeepSAMLidfile - file namepublic java.lang.String getPrivKey()
return Keep instance private key
getPrivKey in interface KeepSAMLpublic java.lang.String getPubKey()
return Keep instance public key
public java.lang.String getX509Cert()
getX509Cert in interface KeepSAMLpublic java.util.Optional<SamlUserId> lookupUserId(java.lang.String dominoName)
KeepSAMLChecks for a SamlUserId
lookupUserId in interface KeepSAMLpublic void releaseAllIDs()
Delete all cached id files
releaseAllIDs in interface KeepSAMLpublic short retrieveUserID(java.lang.String userEmail,
java.lang.String dominoName,
java.lang.String currentClaim)
Retrieve the user id using a SAML dance. Info about the user is cached locally
retrieveUserID in interface KeepSAMLuserEmail - User’s public email (e.g. jerrygarcia@prod.hclpnp.com)dominoName - User’s mapped Domino name (abbreviated or full DN) (e.g. Jerry Garcia/ProjectKeep)currentClaim - JWT claim with expire infopublic void setPrivKey(java.lang.String privKey)
store Keep private key
setPrivKey in interface KeepSAMLprivKey - private keypublic void setPubKey(java.lang.String pubKey)
store Keep public key
public void setX509Cert(java.lang.String x509Cert)
store Keep public certificate
setX509Cert in interface KeepSAMLx509Cert - public certificate