Openwings API Documentation (v1.1)

net.openwings.security
Interface RoleSigner


public interface RoleSigner

This interface represents a utility that is used in the construction and comparison of OpenwingsRole objects to access the role's credentials.


Method Summary
 boolean compareSignedRoles(java.security.SignedObject role1, java.security.SignedObject role2)
          This compares the credentials of two roles for equality.
 java.security.SignedObject getSignedRole(java.lang.String roleName)
          This method constructs the signed object that represents the role's credentials.
 

Method Detail

getSignedRole

public java.security.SignedObject getSignedRole(java.lang.String roleName)
                                         throws java.lang.SecurityException
This method constructs the signed object that represents the role's credentials.

Parameters:
roleName - the name of the role
Throws:
java.lang.SecurityException - if unable to sign the role

compareSignedRoles

public boolean compareSignedRoles(java.security.SignedObject role1,
                                  java.security.SignedObject role2)
                           throws java.lang.SecurityException
This compares the credentials of two roles for equality.

Parameters:
role1 - a signed role
role2 - another signed role
Throws:
java.lang.SecurityException - if unable to compare the roles

Openwings API Documentation (v1.1)