Package ddf.security.assertion
Interface SecurityAssertion
- All Superinterfaces:
Serializable
This class serves as the object that underpins a Subject or user
- Author:
- tustisos
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of attribute statementsReturns the list of authn statementsReturns the name of the entity that issued the token (if any)Returns the earliest date that the assertion is validReturns the date that the assertion is invalidReturns the PrincipalReturns primary principal and all attributes as principalsReturns the list of subject confirmationsgetToken()Returns the underlying token that this object wrapsReturns the token type URI for this assertionintReturns the weight associated with the type of authentication used to produce this assertionbooleanReturns true if checked while within the time bounds defined by NotBefore and NotOnOrAftertoString()Returns a String representation of this Assertion
-
Field Details
-
IDP_AUTH_WEIGHT
static final int IDP_AUTH_WEIGHT- See Also:
-
LOCAL_AUTH_WEIGHT
static final int LOCAL_AUTH_WEIGHT- See Also:
-
NO_AUTH_WEIGHT
static final int NO_AUTH_WEIGHT- See Also:
-
-
Method Details
-
getPrincipal
Principal getPrincipal()Returns the Principal- Returns:
- Principal
-
getIssuer
String getIssuer()Returns the name of the entity that issued the token (if any)- Returns:
- String - token issuer
-
getAttributeStatements
List<AttributeStatement> getAttributeStatements()Returns the list of attribute statements- Returns:
- List
-
getAuthnStatements
List<AuthenticationStatement> getAuthnStatements()Returns the list of authn statements- Returns:
- List
-
getSubjectConfirmations
Returns the list of subject confirmations- Returns:
- List
-
getPrincipals
Returns primary principal and all attributes as principals- Returns:
- List
-
getTokenType
String getTokenType()Returns the token type URI for this assertion- Returns:
- either http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0 or http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1
-
getToken
Object getToken()Returns the underlying token that this object wraps- Returns:
- SecurityToken
-
getNotBefore
Date getNotBefore()Returns the earliest date that the assertion is valid- Returns:
- Date
-
getNotOnOrAfter
Date getNotOnOrAfter()Returns the date that the assertion is invalid- Returns:
- Date
-
toString
String toString()Returns a String representation of this Assertion -
getWeight
int getWeight()Returns the weight associated with the type of authentication used to produce this assertion- Returns:
- int
-
isPresentlyValid
boolean isPresentlyValid()Returns true if checked while within the time bounds defined by NotBefore and NotOnOrAfter- Returns:
- boolean
-