public class SecurityService extends AbstractResinSubSystem
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY |
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Constructor and Description |
---|
SecurityService() |
Modifier and Type | Method and Description |
---|---|
static SecurityService |
createAndAddService() |
DigestCredentials |
createCredentials(java.lang.String algorithm,
java.lang.String user,
java.lang.String password,
java.lang.String nonce) |
byte[] |
createDigest(java.lang.String user,
java.lang.String password,
java.lang.String nonce) |
java.lang.String |
getAlgorithm(java.lang.String uid) |
Authenticator |
getAuthenticator() |
static SecurityService |
getCurrent() |
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
boolean |
isSystemAuthKey() |
void |
setAuthenticator(Authenticator auth) |
void |
setSignatureSecret(java.lang.String secret) |
byte[] |
sign(byte[] data) |
java.lang.String |
sign(java.lang.String algorithm,
java.lang.String uid,
java.lang.String password,
java.lang.String nonce) |
java.lang.String |
signSystem(java.lang.String uid,
java.lang.String nonce) |
void |
start()
Starts the service.
|
destroy, getStopPriority, isActive, preCreate, stop, toString
public static final int START_PRIORITY
public static SecurityService createAndAddService()
public static SecurityService getCurrent()
public void setSignatureSecret(java.lang.String secret)
public boolean isSystemAuthKey()
public void setAuthenticator(Authenticator auth)
public Authenticator getAuthenticator()
public java.lang.String getAlgorithm(java.lang.String uid)
public java.lang.String signSystem(java.lang.String uid, java.lang.String nonce)
public java.lang.String sign(java.lang.String algorithm, java.lang.String uid, java.lang.String password, java.lang.String nonce)
public byte[] sign(byte[] data)
public DigestCredentials createCredentials(java.lang.String algorithm, java.lang.String user, java.lang.String password, java.lang.String nonce)
public byte[] createDigest(java.lang.String user, java.lang.String password, java.lang.String nonce)
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start()
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem