public abstract class AbstractSAML1ProfileHandler extends AbstractSAMLProfileHandler
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected class |
AbstractSAML1ProfileHandler.SAML1AuditLogEntry
SAML 1 specific audit log entry.
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static SAMLVersion |
SAML_VERSION
SAML Version for this profile handler.
|
| コンストラクタと説明 |
|---|
AbstractSAML1ProfileHandler()
Default constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected Assertion |
buildAssertion(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
org.joda.time.DateTime issueInstant)
Builds a basic assertion with its id, issue instant, SAML version, issuer, subject, and conditions populated.
|
protected AttributeStatement |
buildAttributeStatement(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
String subjectConfMethod)
Executes a query for attributes and builds a SAML attribute statement from the results.
|
protected Conditions |
buildConditions(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
org.joda.time.DateTime issueInstant)
Builds a SAML assertion condition set.
|
protected Response |
buildErrorResponse(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
Constructs an SAML response message carrying a request error.
|
protected NameIdentifier |
buildNameId(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
Builds a NameIdentifier appropriate for this request.
|
protected Response |
buildResponse(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
List<Statement> statements)
Builds a response to the attribute query within the request context.
|
protected Status |
buildStatus(QName topLevelCode,
QName secondLevelCode,
String failureMessage)
Build a status message, with an optional second-level failure message.
|
protected Subject |
buildSubject(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
String confirmationMethod)
Builds the SAML subject for the user for the service provider.
|
protected void |
checkSamlVersion(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
Checks that the SAML major version for a request is 1.
|
protected String |
getSessionIndexFromNameID(NameIdentifier nameIdentifier)
Creates a properly-delimited string representation from the given SAML1
NameIdentifier for session indexing purposes.
|
protected boolean |
isSignAssertion(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
Determine whether issued assertions should be signed.
|
protected void |
populateRequestContext(BaseSAMLProfileRequestContext requestContext)
Populates the request context with information.
|
protected void |
populateStatusResponse(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
ResponseAbstractType response)
Populates the response's id, in response to, issue instant, version, and issuer properties.
|
protected void |
populateUserInformation(BaseSAMLProfileRequestContext requestContext)
Populates the request context with the information about the user.
|
protected void |
resolveAttributes(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
Resolved the attributes for the principal.
|
protected void |
resolvePrincipal(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
Resolves the principal name of the subject of the request.
|
protected void |
signAssertion(BaseSAML1ProfileRequestContext<?,?,?> requestContext,
Assertion assertion)
Signs the given assertion if either the current profile configuration or the relying party configuration contains
signing credentials.
|
protected void |
writeAuditLogEntry(BaseSAMLProfileRequestContext context)
Writes an audit log entry indicating the successful response to the attribute request.
|
encodeResponse, filterNameIDAttributesByFormats, filterNameIDAttributesByProtocol, getAduitLog, getAuditLog, getEntitySupportedFormats, getIdGenerator, getInboundBinding, getInboundMessageDecoder, getMessageDecoders, getMessageEncoders, getMetadataCredentialResolver, getMetadataProvider, getOutboundMessageEncoder, getRelyingPartyConfiguration, getRequiredNameIDFormat, getSecurityPolicyResolver, getSupportedNameFormats, getSupportedOutboundBindings, getUserSession, getUserSession, isSignResponse, populateAssertingPartyInformation, populateProfileInformation, populateRelyingPartyInformation, populateSAMLMessageInformation, selectEndpoint, selectNameIDAttributeAndEncoder, selectNameIDAttributeAndEncoder, setIdGenerator, setInboundBinding, setMessageDecoders, setMessageEncoders, setSecurityPolicyResolver, setSupportedOutboundBindingsgetBuilderFactory, getParserPool, getProfileConfiguration, getProfileId, getRelyingPartyConfigurationManager, getSessionManager, getStorageService, setParserPool, setRelyingPartyConfigurationManager, setSessionManager, setStorageServicegetRequestPaths, setRequestPathsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessRequestpublic static final SAMLVersion SAML_VERSION
protected void populateRequestContext(BaseSAMLProfileRequestContext requestContext) throws ProfileException
populateRequestContext クラス内 AbstractSAMLProfileHandlerrequestContext - current request contextProfileException - thrown if there is a problem looking up the relying party's metadataprotected void populateUserInformation(BaseSAMLProfileRequestContext requestContext)
populateUserInformation クラス内 AbstractSAMLProfileHandlerrequestContext - current request contextprotected void checkSamlVersion(BaseSAML1ProfileRequestContext<?,?,?> requestContext) throws ProfileException
requestContext - current request context containing the SAML messageProfileException - thrown if the major version of the SAML request is not 1protected Response buildResponse(BaseSAML1ProfileRequestContext<?,?,?> requestContext, List<Statement> statements) throws ProfileException
requestContext - current request contextstatements - the statements to include in the responseProfileException - thrown if there is a problem creating the SAML responseprotected Assertion buildAssertion(BaseSAML1ProfileRequestContext<?,?,?> requestContext, org.joda.time.DateTime issueInstant)
requestContext - current request contextissueInstant - time to use as assertion issue instantprotected Conditions buildConditions(BaseSAML1ProfileRequestContext<?,?,?> requestContext, org.joda.time.DateTime issueInstant)
requestContext - current request contextissueInstant - timestamp the assertion was createdprotected Subject buildSubject(BaseSAML1ProfileRequestContext<?,?,?> requestContext, String confirmationMethod) throws ProfileException
requestContext - current request contextconfirmationMethod - subject confirmation method used for the subjectProfileException - thrown if a NameID can not be created either because there was a problem encoding the
name ID attribute or because there are no supported name formatsprotected NameIdentifier buildNameId(BaseSAML1ProfileRequestContext<?,?,?> requestContext) throws ProfileException
requestContext - current request contextProfileException - thrown if a NameIdentifier can not be created either because there was a problem
encoding the name ID attribute or because there are no supported name formatsprotected Response buildErrorResponse(BaseSAML1ProfileRequestContext<?,?,?> requestContext)
requestContext - current request context containing the failure statusprotected void populateStatusResponse(BaseSAML1ProfileRequestContext<?,?,?> requestContext, ResponseAbstractType response)
requestContext - current request contextresponse - the response to populateprotected Status buildStatus(QName topLevelCode, QName secondLevelCode, String failureMessage)
topLevelCode - top-level status codesecondLevelCode - second-level status codefailureMessage - An optional second-level failure messageprotected void resolveAttributes(BaseSAML1ProfileRequestContext<?,?,?> requestContext) throws ProfileException
requestContext - current request contextProfileException - thrown if there is a problem resolving the attributes for the subject.protected AttributeStatement buildAttributeStatement(BaseSAML1ProfileRequestContext<?,?,?> requestContext, String subjectConfMethod) throws ProfileException
requestContext - current request contextsubjectConfMethod - subject confirmation methodProfileException - thrown if there is a problem making the queryprotected void resolvePrincipal(BaseSAML1ProfileRequestContext<?,?,?> requestContext) throws ProfileException
requestContext - current request contextProfileException - thrown if the principal name can not be resolvedprotected void signAssertion(BaseSAML1ProfileRequestContext<?,?,?> requestContext, Assertion assertion) throws ProfileException
requestContext - current request contextassertion - assertion to signProfileException - thrown if the metadata can not be located for the relying party or, if signing is
required, if a signing credential is not configuredprotected boolean isSignAssertion(BaseSAML1ProfileRequestContext<?,?,?> requestContext) throws ProfileException
requestContext - the current request contextProfileException - if there is a problem determining whether assertions should be signedprotected String getSessionIndexFromNameID(NameIdentifier nameIdentifier)
nameIdentifier - the NameIdentifier to create string representation fromprotected void writeAuditLogEntry(BaseSAMLProfileRequestContext context)
writeAuditLogEntry クラス内 AbstractSAMLProfileHandlercontext - current request contextCopyright © 2012. All Rights Reserved.