public void sign(AuthSuccess authSuccess) throws ServerException, AssociationException {
  String handle=authSuccess.getHandle();
  Association assoc=_sharedAssociations.load(handle);
  if (assoc == null)   assoc=_privateAssociations.load(handle);
  if (assoc == null)   throw new ServerException("No association found for handle: " + handle);
  authSuccess.setSignature(assoc.sign(authSuccess.getSignedText()));
}

public void sign ( AuthSuccess authSuccess ) throws ServerException , AssociationException { String handle = authSuccess . getHandle ( ) ; Association assoc = _sharedAssociations . load ( handle ) ; if ( assoc == null ) assoc = _privateAssociations . load ( handle ) ; if ( assoc == null ) throw new ServerException ( "No association found for handle: " + handle ) ; authSuccess . setSignature ( assoc . sign ( authSuccess . getSignedText ( ) ) ) ; }
signs an authsuccess message , using the association identified by the handle specified within the message .
