public abstract class AbstractNutsAuthenticationAgent extends Object implements net.thevpc.nuts.NutsAuthenticationAgent
| Constructor and Description |
|---|
AbstractNutsAuthenticationAgent(String name,
int supportLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCredentials(char[] credentialsId,
char[] password,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session) |
char[] |
createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session) |
protected abstract char[] |
decryptChars(char[] data,
String passphrase,
net.thevpc.nuts.NutsSession session) |
protected abstract char[] |
encryptChars(char[] data,
String passphrase,
net.thevpc.nuts.NutsSession session) |
char[] |
getCredentials(char[] credentialsId,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session) |
String |
getId() |
String |
getPassphrase(Map<String,String> envProvider) |
int |
getSupportLevel(net.thevpc.nuts.NutsSupportLevelContext<String> authenticationAgent) |
protected abstract char[] |
hashChars(char[] data,
String passphrase,
net.thevpc.nuts.NutsSession session) |
boolean |
removeCredentials(char[] credentialsId,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session) |
public AbstractNutsAuthenticationAgent(String name, int supportLevel)
public String getId()
getId in interface net.thevpc.nuts.NutsAuthenticationAgentpublic boolean removeCredentials(char[] credentialsId,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session)
removeCredentials in interface net.thevpc.nuts.NutsAuthenticationAgentpublic int getSupportLevel(net.thevpc.nuts.NutsSupportLevelContext<String> authenticationAgent)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponent<String>public void checkCredentials(char[] credentialsId,
char[] password,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session)
checkCredentials in interface net.thevpc.nuts.NutsAuthenticationAgentpublic char[] getCredentials(char[] credentialsId,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session)
getCredentials in interface net.thevpc.nuts.NutsAuthenticationAgentpublic char[] createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId,
Map<String,String> envProvider,
net.thevpc.nuts.NutsSession session)
createCredentials in interface net.thevpc.nuts.NutsAuthenticationAgentprotected abstract char[] decryptChars(char[] data,
String passphrase,
net.thevpc.nuts.NutsSession session)
protected abstract char[] encryptChars(char[] data,
String passphrase,
net.thevpc.nuts.NutsSession session)
protected abstract char[] hashChars(char[] data,
String passphrase,
net.thevpc.nuts.NutsSession session)
Copyright © 2021 vpc open source initiative. All rights reserved.