|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OASecurityManager
Adaptor-side interface to the Open Adaptor Security Server.
An instance of the OASecurityManager is created by the OA Controller,
and its initialisation properties are read from the Adaptor properties file.
Properties required by OASecurityManager for its initialization are:
Method Summary | |
---|---|
SecureKey |
generateKey(Policy policy,
int keyId)
Generates a secret key using the given policy and preferred keyId. |
java.security.PrivateKey |
generateKeyPair(Policy policy,
int adaptorId)
Generates a PublicKey/PrivateKey pair using the given policy and adaptor id. |
SecureKey |
getKey(int keyId)
Gets key given a keyId. |
SecureKey |
getKey(Policy policy)
Gets key for a policy. |
Policy[] |
getPolicy(DOType dotype)
Gets policies for a DOType. |
Policy[] |
getPolicy(java.lang.String dotypeName)
Gets policies for a DOType Name. |
Policy |
getPolicyWithName(java.lang.String policyName)
Gets policies given a policy name. |
java.security.PrivateKey |
getPrivateKey(int adaptorId)
Gets the PrivateKey of this Adaptor. |
java.security.PublicKey |
getPublicKey(int adaptorId)
Gets the PublicKey of any other adaptor. |
void |
init(java.lang.String name,
java.util.Properties properties,
java.lang.String propsPrefix,
Controller controller)
Initialises the Security Manager |
void |
login(java.lang.String adaptorName,
java.util.Properties adaptorContext)
Logs in onto Security Server. |
Method Detail |
---|
void init(java.lang.String name, java.util.Properties properties, java.lang.String propsPrefix, Controller controller) throws java.lang.SecurityException
name
- Name of the SecurityManager
java.lang.SecurityException
- if initialization failsvoid login(java.lang.String adaptorName, java.util.Properties adaptorContext) throws java.lang.SecurityException
certFile
- certificate file name
java.lang.SecurityException
Policy[] getPolicy(DOType dotype) throws java.lang.SecurityException
type
- DOType for which policies are required
java.lang.SecurityException
Policy[] getPolicy(java.lang.String dotypeName) throws java.lang.SecurityException
type
- DOType for which policies are required
java.lang.SecurityException
Policy getPolicyWithName(java.lang.String policyName) throws java.lang.SecurityException
java.lang.SecurityException
SecureKey getKey(Policy policy) throws java.lang.SecurityException
java.lang.SecurityException
SecureKey getKey(int keyId) throws java.lang.SecurityException
java.lang.SecurityException
SecureKey generateKey(Policy policy, int keyId) throws java.lang.SecurityException
The key is stored for future retrieval.
java.lang.SecurityException
java.security.PrivateKey getPrivateKey(int adaptorId) throws java.lang.SecurityException
java.lang.SecurityException
java.security.PublicKey getPublicKey(int adaptorId) throws java.lang.SecurityException
java.lang.SecurityException
java.security.PrivateKey generateKeyPair(Policy policy, int adaptorId) throws java.lang.SecurityException
The key pair is stored for future retrieval.
java.lang.SecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |