org.astrogrid.community.client.security.service
Interface SecurityServiceDelegate

All Superinterfaces:
CommunityServiceDelegate
All Known Implementing Classes:
SecurityServiceCoreDelegate, SecurityServiceMockDelegate, SecurityServiceSoapDelegate

public interface SecurityServiceDelegate
extends CommunityServiceDelegate

Public interface for our SecurityService delegate. This mirrors the SecurityService interface, without the RemoteExceptions.


Method Summary
 org.astrogrid.community.common.security.data.SecurityToken checkPassword(java.lang.String account, java.lang.String pass)
          Check an Account password.
 org.astrogrid.community.common.security.data.SecurityToken checkToken(org.astrogrid.community.common.security.data.SecurityToken token)
          Validate a SecurityToken.
 java.lang.Object[] splitToken(org.astrogrid.community.common.security.data.SecurityToken token, int count)
          Split a SecurityToken.
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Method Detail

checkPassword

public org.astrogrid.community.common.security.data.SecurityToken checkPassword(java.lang.String account,
                                                                                java.lang.String pass)
                                                                         throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                                                org.astrogrid.community.common.exception.CommunitySecurityException,
                                                                                org.astrogrid.community.common.exception.CommunityIdentifierException
Check an Account password.

Parameters:
account - The account ident.
Returns:
A valid SecurityToken if the ident and password are valid.
Throws:
org.astrogrid.community.common.exception.CommunitySecurityException - If the security check fails.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the account identifier is invalid.

checkToken

public org.astrogrid.community.common.security.data.SecurityToken checkToken(org.astrogrid.community.common.security.data.SecurityToken token)
                                                                      throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                                             org.astrogrid.community.common.exception.CommunitySecurityException,
                                                                             org.astrogrid.community.common.exception.CommunityIdentifierException
Validate a SecurityToken. Validates a token, and creates a new token issued to the same account.

Parameters:
token - The token to validate.
Returns:
A new SecurityToken if the original was valid.
Throws:
org.astrogrid.community.common.exception.CommunitySecurityException - If the security check fails.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the token is invalid.

splitToken

public java.lang.Object[] splitToken(org.astrogrid.community.common.security.data.SecurityToken token,
                                     int count)
                              throws org.astrogrid.community.common.exception.CommunityServiceException,
                                     org.astrogrid.community.common.exception.CommunitySecurityException,
                                     org.astrogrid.community.common.exception.CommunityIdentifierException
Split a SecurityToken. Validates a token, and then creates a new set of tokens issued to the same account.

Parameters:
token - The token to validate.
count - The number of new tokens required.
Returns:
An array of new SecurityToken(s).
Throws:
org.astrogrid.community.common.exception.CommunitySecurityException - If the security check fails.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the token is invalid.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.