|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes a service that manages users, roles and trust relationsips with other platforms or contexts.
The security service applies to a single platform, and only one security service should be provided on a platform.
| Method Summary | |
void |
addRelationship(java.lang.String platformName,
java.security.cert.Certificate[] certificateChain)
This method is used to establish a trust relationship between two platforms. |
void |
addRole(java.lang.String roleName)
This method adds the specified role to the system. |
void |
addSignerCertificate(java.security.cert.Certificate[] certificates)
This method is used to import signer certificates into the system. |
void |
addUser(java.lang.String userName,
java.lang.String[] roles,
java.lang.String password)
This method adds a user to the system. |
void |
addUserToRole(java.lang.String userName,
java.lang.String roleName)
This method assigns a role to a user. |
void |
deleteRelationship(java.lang.String platformName)
This method is used to remove a trust relationship between two platforms. |
void |
deleteRole(java.lang.String roleName)
This method deletes the specified role from the system. |
void |
deleteUser(java.lang.String userName)
This method removes the user from the system. |
void |
deleteUserFromRole(java.lang.String userName,
java.lang.String roleName)
This method removes the assignment of the role to the user. |
java.security.cert.Certificate |
getCertificate(java.lang.String alias)
This method is used to obtain the certificate associated with a particular user/role. |
java.security.cert.Certificate[] |
getCertificateChain(java.lang.String alias)
This method is used to obtain the certificate chain associated with a particular user/role. |
UniqueID |
getContext()
This method is used to tell what context a platform is a member of. |
java.net.InetAddress |
getHost()
This method returns the host on which this SecurityService is running. |
java.security.Principal[] |
getRoles(java.lang.String userName)
This method returns the list of OpenwingsRoles
(Principals) assigned to a user name. |
java.security.Principal[] |
getRoles(javax.security.auth.Subject subject)
This method returns the list of OpenwingsRoles
(Principals) assigned to a subject. |
java.security.SignedObject |
getSignedObject(java.io.Serializable obj)
This method is used to sign an object with the Openwings private key |
java.lang.String[] |
getSystemRoles()
This method returns the list of roles currently present in the system. |
java.lang.Object |
getUnsignedObject(java.security.SignedObject sObj)
This method is used to retrieve the contents of an object signed by the Openwings private key |
java.lang.String[] |
getUsers()
This method returns the list of users currently present in the system. |
java.security.PublicKey |
getVerificationKey()
This method returns the SecurityService public key
corresponding to the private key used to sign objects. |
boolean |
hasCertificate(java.lang.String alias)
This method is used to determine if a user/role has a certificate in the keystore. |
boolean |
hasTrustedCertificate(java.lang.String alias)
This method is used to determine if a user/role has a trusted certificate in the keystore. |
boolean |
isSigner(java.security.cert.Certificate[] certificates)
This method is used to determine whether the signer of an application is a signer known but not necessarily trusted by the system. |
boolean |
isTrustedSigner(java.security.cert.Certificate[] certificates)
This method is used to determine whether the signer of an application is a signer trusted by the system. |
void |
modifyUser(java.lang.String userName,
java.lang.String[] roles,
java.lang.String password,
java.lang.String oldPassword)
This method modifies a user in the system. |
void |
modifyUserPassword(java.lang.String userName,
java.lang.String password,
java.lang.String oldPassword)
This method modifies a user's password in the system. |
void |
modifyUserRoles(java.lang.String userName,
java.lang.String[] roles)
This method modifies a user's roles in the system. |
void |
removeSignerCertificate(java.security.cert.Certificate[] certificates)
This method is used to remove signer certificates from the system. |
void |
setContext(UniqueID myContextID)
This method is used to tell the platform what context it is a member of. |
boolean |
validateLogin(java.lang.String userName,
java.lang.String password)
This method is used to validate the user login. |
| Method Detail |
public java.net.InetAddress getHost()
throws java.rmi.RemoteException
SecurityService is running.
java.rmi.RemoteException - if there is an error communicating
with the service.
public void addUser(java.lang.String userName,
java.lang.String[] roles,
java.lang.String password)
throws java.rmi.RemoteException
userName - the user's nameroles - list of roles to which the user is assigned.password - the user's password
java.rmi.RemoteException - if there is an error communicating
with the service.
public void modifyUser(java.lang.String userName,
java.lang.String[] roles,
java.lang.String password,
java.lang.String oldPassword)
throws java.rmi.RemoteException
userName - the user's nameroles - list of roles to which the user is assigned.password - the user's new passwordoldPassword - the user's old password
java.rmi.RemoteException - if there is an error communicating
with the service.
public void modifyUserPassword(java.lang.String userName,
java.lang.String password,
java.lang.String oldPassword)
throws java.rmi.RemoteException
userName - the user's namepassword - the user's new passwordoldPassword - the user's old password
java.rmi.RemoteException - if there is an error communicating
with the service.
public void modifyUserRoles(java.lang.String userName,
java.lang.String[] roles)
throws java.rmi.RemoteException
userName - the user's nameroles - list of roles to which the user is assigned.
java.rmi.RemoteException - if there is an error communicating
with the service.
public void deleteUser(java.lang.String userName)
throws java.rmi.RemoteException
userName - the user's name
java.rmi.RemoteException - if there is an error communicating
with the service.
public void addUserToRole(java.lang.String userName,
java.lang.String roleName)
throws java.rmi.RemoteException
userName - the user's nameroleName - the role name
java.rmi.RemoteException - if there is an error communicating
with the service.
public void deleteUserFromRole(java.lang.String userName,
java.lang.String roleName)
throws java.rmi.RemoteException
userName - the user's nameroleName - the role name
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.security.Principal[] getRoles(javax.security.auth.Subject subject)
throws java.rmi.RemoteException
OpenwingsRoles
(Principals) assigned to a subject.
subject - Subject representing the user.
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.security.Principal[] getRoles(java.lang.String userName)
throws java.rmi.RemoteException
OpenwingsRoles
(Principals) assigned to a user name.
userName - the user's name
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.lang.String[] getSystemRoles()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.lang.String[] getUsers()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is an error communicating
with the service.
public void addRole(java.lang.String roleName)
throws java.rmi.RemoteException
roleName - the role name
java.rmi.RemoteException - if there is an error communicating
with the service.
public void deleteRole(java.lang.String roleName)
throws java.rmi.RemoteException
roleName - the role name
java.rmi.RemoteException - if there is an error communicating
with the service.
public void setContext(UniqueID myContextID)
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is an error communicating
with the service.
public UniqueID getContext()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is an error communicating
with the service.
public boolean hasCertificate(java.lang.String alias)
throws java.rmi.RemoteException
alias - the name of a user or role on this platform
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.security.cert.Certificate getCertificate(java.lang.String alias)
throws java.rmi.RemoteException
alias - the name of a user or role on this platform
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.security.cert.Certificate[] getCertificateChain(java.lang.String alias)
throws java.rmi.RemoteException
alias - the name of a user or role on this platform
java.rmi.RemoteException - if there is an error communicating
with the service.
public boolean hasTrustedCertificate(java.lang.String alias)
throws java.rmi.RemoteException
alias - the name of a user or role on this platform
java.rmi.RemoteException - if there is an error communicating
with the service.
public void addRelationship(java.lang.String platformName,
java.security.cert.Certificate[] certificateChain)
throws java.rmi.RemoteException
platformName - name of the platform to trustcertificateChain - certificate chain associated with this platform
java.rmi.RemoteException - if there is an error communicating
with the service.
public void deleteRelationship(java.lang.String platformName)
throws java.rmi.RemoteException
platformName - name of the previously trusted platform
java.rmi.RemoteException - if there is an error communicating
with the service.
public boolean isTrustedSigner(java.security.cert.Certificate[] certificates)
throws java.rmi.RemoteException
certificates - signer certificate chain
java.rmi.RemoteException - if there is an error communicating
with the service.
public boolean isSigner(java.security.cert.Certificate[] certificates)
throws java.rmi.RemoteException
certificates - signer certificate chain
java.rmi.RemoteException - if there is an error communicating
with the service.
public void addSignerCertificate(java.security.cert.Certificate[] certificates)
throws java.rmi.RemoteException,
java.security.GeneralSecurityException
certificates - signer certificate chain
java.rmi.RemoteException - if there is an error communicating
with the service.
java.security.GeneralSecurityException - if there is an error adding the
certificate.
public void removeSignerCertificate(java.security.cert.Certificate[] certificates)
throws java.rmi.RemoteException,
java.security.GeneralSecurityException
certificates - signer certificate chain
java.rmi.RemoteException - if there is an error communicating
with the service.
java.security.GeneralSecurityException
public boolean validateLogin(java.lang.String userName,
java.lang.String password)
throws java.rmi.RemoteException
userName - username stringpassword - password string
java.rmi.RemoteException - if there is an error communicating
with the service.
public java.security.SignedObject getSignedObject(java.io.Serializable obj)
throws java.rmi.RemoteException,
java.security.GeneralSecurityException
java.rmi.RemoteException - if there is an error communicating
with the service.
java.security.GeneralSecurityException - if there is an error signing the object
public java.lang.Object getUnsignedObject(java.security.SignedObject sObj)
throws java.rmi.RemoteException,
java.security.GeneralSecurityException
java.rmi.RemoteException - if there is an error communicating
with the service.
java.security.GeneralSecurityException - if there is an error retrieving the object
public java.security.PublicKey getVerificationKey()
throws java.rmi.RemoteException,
java.lang.SecurityException
SecurityService public key
corresponding to the private key used to sign objects. This may be
used to verify signed objects returned from the service.
SecurityService public key
java.rmi.RemoteException - if there is an error communicating
with the service.
java.lang.SecurityException - if key access is disallowed
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||