public abstract class SecurityElementFactory extends Object
Modifier and Type | Method and Description |
---|---|
abstract Security |
createSecurity(String role)
Deprecated.
Creates a Security element targeted to the designated actor/role.
|
abstract Token |
createToken(String username,
String password)
Deprecated.
Create a token for the username/password provided, using the default password type.
|
abstract Token |
createToken(String username,
String password,
String type)
Deprecated.
Creates a Token for the username/password using the given password type.
|
abstract Token |
createToken(UserInfo userInfo)
Deprecated.
Creates a token for the given userInfo using the default password type.
|
abstract Token |
createToken(X509Certificate cert,
PrivateKey key)
Deprecated.
Creates a Token for the provided certificate.
|
static SecurityElementFactory |
getDefaultFactory()
Deprecated.
Returns the SecurityElementFactory, i.e.
|
static SecurityElementFactory |
newInstance(String namespace)
Deprecated.
Creates a new SecurityElementFactory.
|
static void |
setDefaultFactory(SecurityElementFactory factory)
Deprecated.
sets the defaultFactory to the provided factory.
|
public static final SecurityElementFactory getDefaultFactory()
public static final void setDefaultFactory(SecurityElementFactory factory)
factory
- public static final SecurityElementFactory newInstance(String namespace)
namespace
- public abstract Security createSecurity(String role)
role
- a stringpublic abstract Token createToken(String username, String password, String type)
username
- password
- type
- public abstract Token createToken(String username, String password)
username
- password
- public abstract Token createToken(UserInfo userInfo)
userInfo
- public abstract Token createToken(X509Certificate cert, PrivateKey key)
cert
- key
-