uk.ac.soton.itinnovation.grid.types
Class ParsedSubjectDescription

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.types.SubjectDescription
      extended by uk.ac.soton.itinnovation.grid.types.ParsedSubjectDescription

public class ParsedSubjectDescription
extends SubjectDescription

Extends SubjectDescription to store the parsed SAMLAssertion from the additionalSecurityTokens field (for efficiency). This is used internally by code that evaluates match rules.


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.types.SubjectDescription
additionalSecurityTokens, cert, trustedAttributes
 
Constructor Summary
ParsedSubjectDescription(SubjectDescription source)
           
 
Method Summary
 org.opensaml.SAMLAssertion getAssertion()
           
 boolean matchedBy(MatchPattern matchPattern)
          Check whether this rule matches.
 boolean matchedBy(MatchRule rule)
          Deprecated. see matchedBy(MatchPattern).
 void securityTokensChanged()
          Overridden by sub-classes which maintain a parsed version of the tokens.
 String toString()
           
 
Methods inherited from class uk.ac.soton.itinnovation.grid.types.SubjectDescription
addAdditionalTokens, getAdditionalSecurityTokens, getAdditionalSecurityTokens, getTrustedAttributes, getTrustedAttributes, getTypeDesc, getX509Certificate, setAdditionalSecurityTokens, setAdditionalSecurityTokens, setTrustedAttributes, setTrustedAttributes, setX509Certificate, toID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsedSubjectDescription

public ParsedSubjectDescription(SubjectDescription source)
                         throws InvalidSubjectDescriptorException
Throws:
InvalidSubjectDescriptorException
Method Detail

securityTokensChanged

public void securityTokensChanged()
                           throws InvalidSubjectDescriptorException
Description copied from class: SubjectDescription
Overridden by sub-classes which maintain a parsed version of the tokens. The default implementation does nothing.

Overrides:
securityTokensChanged in class SubjectDescription
Throws:
InvalidSubjectDescriptorException

getAssertion

public org.opensaml.SAMLAssertion getAssertion()

matchedBy

@Deprecated
public boolean matchedBy(MatchRule rule)
Deprecated. see matchedBy(MatchPattern).

Check whether this rule matches.


matchedBy

public boolean matchedBy(MatchPattern matchPattern)
Check whether this rule matches.

Parameters:
matchPattern - details of the rule to check.
Returns:
true if the pattern matches the user.

toString

public String toString()
Overrides:
toString in class SubjectDescription


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.