• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java AuthzDecisionStatement类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.opensaml.saml2.core.AuthzDecisionStatement的典型用法代码示例。如果您正苦于以下问题:Java AuthzDecisionStatement类的具体用法?Java AuthzDecisionStatement怎么用?Java AuthzDecisionStatement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

AuthzDecisionStatement类属于org.opensaml.saml2.core包,在下文中一共展示了AuthzDecisionStatement类的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: processAttribute

点赞 3

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
    AuthzDecisionStatement authzDS = (AuthzDecisionStatement) samlObject;

    if (attribute.getLocalName().equals(AuthzDecisionStatement.RESOURCE_ATTRIB_NAME)) {
        authzDS.setResource(attribute.getValue());
    } else if (attribute.getLocalName().equals(AuthzDecisionStatement.DECISION_ATTRIB_NAME)) {
        String value = attribute.getValue();
        if (value.equals(DecisionTypeEnumeration.PERMIT.toString())) {
            authzDS.setDecision(DecisionTypeEnumeration.PERMIT);
        } else if (value.equals(DecisionTypeEnumeration.DENY.toString())) {
            authzDS.setDecision(DecisionTypeEnumeration.DENY);
        } else if (value.equals(DecisionTypeEnumeration.INDETERMINATE.toString())) {
            authzDS.setDecision(DecisionTypeEnumeration.INDETERMINATE);
        } else {
            throw new UnmarshallingException("Unknown value for DecisionType '" + value + "'");
        }
    } else {
        super.processAttribute(samlObject, attribute);
    }
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:22,
代码来源:AuthzDecisionStatementUnmarshaller.java

示例2: testSubjectFailure

点赞 3

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Tests absent Subject failure.
 * 
 * @throws ValidationException
 */
public void testSubjectFailure() throws ValidationException {
    Assertion assertion = (Assertion) target;
    AuthnStatement authnStatement = (AuthnStatement) buildXMLObject(new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX));
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) buildXMLObject(new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX));
    AttributeStatement attributeStatement = (AttributeStatement) buildXMLObject(new QName(SAMLConstants.SAML20_NS, AttributeStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX));
    
    assertion.setSubject(null);
    assertValidationFail("Subject was null in the absence of statements, should raise a Validation Exception");

    assertion.getAuthnStatements().add(authnStatement);
    assertValidationFail("Subject was null in the presence of AuthnStatement, should raise a Validation Exception.");
    
    assertion.getAuthnStatements().clear();
    assertion.getAuthzDecisionStatements().add(authzDecisionStatement);
    assertValidationFail("Subject was null in the presence of AuthzDecisionStatement, should raise a Validation Exception.");
    
    assertion.getAuthzDecisionStatements().clear();
    assertion.getAttributeStatements().add(attributeStatement);
    assertValidationFail("Subject was null in the presence of AttributeStatement, should raise a Validation Exception.");
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:29,
代码来源:AssertionSpecTest.java

示例3: processChildElement

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
    AuthzDecisionStatement authzDS = (AuthzDecisionStatement) parentObject;

    if (childObject instanceof Action) {
        authzDS.getActions().add((Action) childObject);
    } else if (childObject instanceof Evidence) {
        authzDS.setEvidence((Evidence) childObject);
    } else {
        super.processChildElement(parentObject, childObject);
    }
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:13,
代码来源:AuthzDecisionStatementUnmarshaller.java

示例4: marshallAttributes

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
    AuthzDecisionStatement authzDS = (AuthzDecisionStatement) samlObject;

    if (authzDS.getResource() != null) {
        domElement.setAttributeNS(null, AuthzDecisionStatement.RESOURCE_ATTRIB_NAME, authzDS.getResource());
    }

    if (authzDS.getDecision() != null) {
        domElement.setAttributeNS(null, AuthzDecisionStatement.DECISION_ATTRIB_NAME, authzDS.getDecision()
                .toString());
    }
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:14,
代码来源:AuthzDecisionStatementMarshaller.java

示例5: populateRequiredData

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
protected void populateRequiredData() {
    super.populateRequiredData();
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) target;
    Action action = (Action) buildXMLObject(new QName(SAMLConstants.SAML20_NS, Action.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX));
    authzDecisionStatement.setResource("resource");
    authzDecisionStatement.setDecision(DecisionTypeEnumeration.DENY);
    authzDecisionStatement.getActions().add(action);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:10,
代码来源:AuthzDecisionStatementSchemaTest.java

示例6: testResourceFailure

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Tests absent Resource failure.
 * 
 * @throws ValidationException
 */
public void testResourceFailure() throws ValidationException {
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) target;

    authzDecisionStatement.setResource(null);
    assertValidationFail("Resource was null, should raise a Validation Exception");

    authzDecisionStatement.setResource("");
    assertValidationFail("Resource was empty string, should raise a Validation Exception");
    
    authzDecisionStatement.setResource("    ");
    assertValidationFail("Resource was white space, should raise a Validation Exception");
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:18,
代码来源:AuthzDecisionStatementSchemaTest.java

示例7: testDecisionFailure

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Tests absent Decision failure.
 * 
 * @throws ValidationException
 */
public void testDecisionFailure() throws ValidationException {
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) target;

    authzDecisionStatement.setDecision(null);
    assertValidationFail("Decision was null, should raise a Validation Exception");
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:12,
代码来源:AuthzDecisionStatementSchemaTest.java

示例8: testActionFailure

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Tests absent Action failure.
 * 
 * @throws ValidationException
 */
public void testActionFailure() throws ValidationException {
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) target;

    authzDecisionStatement.getActions().clear();
    assertValidationFail("Action list was empty, should raise a Validation Exception");
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:12,
代码来源:AuthzDecisionStatementSchemaTest.java

示例9: testChildElementsMarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testChildElementsMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, Assertion.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    Assertion assertion = (Assertion) buildXMLObject(qname);

    QName issuerQName = new QName(SAMLConstants.SAML20_NS, Issuer.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setIssuer((Issuer) buildXMLObject(issuerQName));
    
    QName subjectQName = new QName(SAMLConstants.SAML20_NS, Subject.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setSubject((Subject) buildXMLObject(subjectQName));
    
    QName conditionsQName = new QName(SAMLConstants.SAML20_NS, Conditions.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setConditions((Conditions) buildXMLObject(conditionsQName));
    
    QName adviceQName = new QName(SAMLConstants.SAML20_NS, Advice.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setAdvice((Advice) buildXMLObject(adviceQName));

    QName authnStatementQName = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < authnStatementCount; i++) {
        assertion.getAuthnStatements().add((AuthnStatement) buildXMLObject(authnStatementQName));
    }
    
    QName authzDecisionStatementQName = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < authzDecisionStatementCount; i++) {
        assertion.getAuthzDecisionStatements().add((AuthzDecisionStatement) buildXMLObject(authzDecisionStatementQName));
    }
    
    QName attributeStatementQName = new QName(SAMLConstants.SAML20_NS, AttributeStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < attributeStatementCount; i++) {
        assertion.getAttributeStatements().add((AttributeStatement) buildXMLObject(attributeStatementQName));
    }
    
    assertEquals(expectedChildElementsDOM, assertion);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:35,
代码来源:AssertionTest.java

示例10: testSingleElementUnmarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementUnmarshall() {
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) unmarshallElement(singleElementFile);

    String resource = authzDecisionStatement.getResource();
    assertEquals("Resource not as expected", expectedResource, resource);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:8,
代码来源:AuthzDecisionStatementTest.java

示例11: testSingleElementOptionalAttributesUnmarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementOptionalAttributesUnmarshall() {
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) unmarshallElement(singleElementOptionalAttributesFile);

    String resource = authzDecisionStatement.getResource();
    assertEquals("Resource not as expected", expectedResource, resource);

    DecisionTypeEnumeration decision = authzDecisionStatement.getDecision();
    assertEquals("Decision not as expected", expectedDecision.toString(), decision.toString());
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:11,
代码来源:AuthzDecisionStatementTest.java

示例12: testSingleElementMarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) buildXMLObject(qname);

    authzDecisionStatement.setResource(expectedResource);
    assertEquals(expectedDOM, authzDecisionStatement);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:9,
代码来源:AuthzDecisionStatementTest.java

示例13: testSingleElementOptionalAttributesMarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementOptionalAttributesMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) buildXMLObject(qname);

    authzDecisionStatement.setResource(expectedResource);
    authzDecisionStatement.setDecision(expectedDecision);

    assertEquals(expectedOptionalAttributesDOM, authzDecisionStatement);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:11,
代码来源:AuthzDecisionStatementTest.java

示例14: testChildElementsMarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testChildElementsMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) buildXMLObject(qname);

    QName actionQName = new QName(SAMLConstants.SAML20_NS, Action.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < expectedActionCount; i++) {
        authzDecisionStatement.getActions().add((Action) buildXMLObject(actionQName));
    }
    
    QName evidenceQName = new QName(SAMLConstants.SAML20_NS, Evidence.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    authzDecisionStatement.setEvidence((Evidence) buildXMLObject(evidenceQName));
    
    assertEquals(expectedChildElementsDOM, authzDecisionStatement);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:16,
代码来源:AuthzDecisionStatementTest.java

示例15: validate

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void validate(AuthzDecisionStatement authzDS) throws ValidationException {
    validateResource(authzDS);
    validateDecision(authzDS);
    validateActions(authzDS);
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:7,
代码来源:AuthzDecisionStatementSchemaValidator.java

示例16: buildObject

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public AuthzDecisionStatement buildObject() {
    return buildObject(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX);
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:6,
代码来源:AuthzDecisionStatementBuilder.java

示例17: getAuthzDecisionStatements

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public List<AuthzDecisionStatement> getAuthzDecisionStatements() {
    QName statementQName = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX);
    return (List<AuthzDecisionStatement>) statements.subList(statementQName);
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:7,
代码来源:AssertionImpl.java

示例18: testAuthzStatements

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
@Test(expected=ValidationException.class)
public void testAuthzStatements() {
	a.getAuthzDecisionStatements().add(SAMLUtil.buildXMLObject(AuthzDecisionStatement.class));
	
	validate();
}
 

开发者ID:amagdenko,
项目名称:oiosaml.java,
代码行数:7,
代码来源:WSFedAssertionValidatorTest.java

示例19: AuthzDecisionStatementUnmarshaller

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** Constructor. */
public AuthzDecisionStatementUnmarshaller() {
    super(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:5,
代码来源:AuthzDecisionStatementUnmarshaller.java

示例20: AuthzDecisionStatementMarshaller

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** Constructor. */
public AuthzDecisionStatementMarshaller() {
    super(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME);
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:5,
代码来源:AuthzDecisionStatementMarshaller.java

示例21: AuthzDecisionStatementSchemaTest

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** Constructor */
public AuthzDecisionStatementSchemaTest() {
    targetQName = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    validator = new AuthzDecisionStatementSchemaValidator();
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:6,
代码来源:AuthzDecisionStatementSchemaTest.java

示例22: testChildElementsUnmarshall

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/** {@inheritDoc} */
public void testChildElementsUnmarshall() {
    AuthzDecisionStatement authzDecisionStatement = (AuthzDecisionStatement) unmarshallElement(childElementsFile);
    assertEquals("Action Count", expectedActionCount, authzDecisionStatement.getActions().size());
    assertNotNull("Evidence element not present", authzDecisionStatement.getEvidence());
}
 

开发者ID:apigee,
项目名称:java-opensaml2,
代码行数:7,
代码来源:AuthzDecisionStatementTest.java

示例23: generateSAMLAssertion

点赞 2

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
public static Element generateSAMLAssertion(PrivateKey privateKey, X509Certificate certificate, String issuerName,
		String subjectName, byte[] document)
		throws MarshallingException, SecurityException, SignatureException, NoSuchAlgorithmException {
	Assertion assertion = buildXMLObject(Assertion.class, Assertion.DEFAULT_ELEMENT_NAME);
	assertion.setVersion(SAMLVersion.VERSION_20);
	String assertionId = "assertion-" + UUID.randomUUID().toString();
	assertion.setID(assertionId);
	DateTime issueInstant = new DateTime();
	assertion.setIssueInstant(issueInstant);

	Issuer issuer = buildXMLObject(Issuer.class, Issuer.DEFAULT_ELEMENT_NAME);
	assertion.setIssuer(issuer);
	issuer.setValue(issuerName);

	Subject subject = buildXMLObject(Subject.class, Subject.DEFAULT_ELEMENT_NAME);
	assertion.setSubject(subject);
	NameID subjectNameId = buildXMLObject(NameID.class, NameID.DEFAULT_ELEMENT_NAME);
	subject.setNameID(subjectNameId);
	subjectNameId.setValue(subjectName);
	SubjectConfirmation subjectConfirmation = buildXMLObject(SubjectConfirmation.class,
			SubjectConfirmation.DEFAULT_ELEMENT_NAME);
	subject.getSubjectConfirmations().add(subjectConfirmation);
	subjectConfirmation.setMethod(SubjectConfirmation.METHOD_BEARER);

	if (null != document) {
		MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
		messageDigest.update(document);
		byte[] documentDigest = messageDigest.digest();
		String encodedDocumentDigest = new String(Hex.encodeHex(documentDigest));
		String resourceUri = DigitalSignatureServiceConstants.DOCUMENT_AUTHORIZATION_RESOURCE_SHA256_URI
				+ encodedDocumentDigest;

		AuthzDecisionStatement authzDecisionStatement = buildXMLObject(AuthzDecisionStatement.class,
				AuthzDecisionStatement.DEFAULT_ELEMENT_NAME);
		assertion.getAuthzDecisionStatements().add(authzDecisionStatement);
		authzDecisionStatement.setDecision(DecisionTypeEnumeration.PERMIT);
		authzDecisionStatement.setResource(resourceUri);
		Action action = buildXMLObject(Action.class, Action.DEFAULT_ELEMENT_NAME);
		action.setNamespace(DigitalSignatureServiceConstants.DOCUMENT_AUTHORIZATION_ACTION_NAMESPACE);
		action.setAction(DigitalSignatureServiceConstants.DOCUMENT_AUTHORIZATION_ACTION_ACTION_SIGN);
		authzDecisionStatement.getActions().add(action);
	}

	BasicX509Credential credential = new BasicX509Credential();
	credential.setPrivateKey(privateKey);
	credential.setEntityCertificate(certificate);

	Signature signature = (Signature) Configuration.getBuilderFactory().getBuilder(Signature.DEFAULT_ELEMENT_NAME)
			.buildObject(Signature.DEFAULT_ELEMENT_NAME);
	signature.setSigningCredential(credential);
	SecurityConfiguration secConfig = Configuration.getGlobalSecurityConfiguration();
	SecurityHelper.prepareSignatureParams(signature, credential, secConfig, null);

	assertion.setSignature(signature);

	Element element = Configuration.getMarshallerFactory().getMarshaller(assertion).marshall(assertion);

	Signer.signObject(signature);

	return element;
}
 

开发者ID:e-Contract,
项目名称:dssp,
代码行数:62,
代码来源:TestUtils.java

示例24: validateResource

点赞 1

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Checks that the Resource attribute is present.
 * 
 * @param authzDS
 * @throws ValidationException
 */
protected void validateResource(AuthzDecisionStatement authzDS) throws ValidationException {
    if (DatatypeHelper.isEmpty(authzDS.getResource())) {
        throw new ValidationException("Resource required");
    }
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:12,
代码来源:AuthzDecisionStatementSchemaValidator.java

示例25: validateDecision

点赞 1

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Checks that the Decision attribute is present.
 * 
 * @param authzDS
 * @throws ValidationException
 */
protected void validateDecision(AuthzDecisionStatement authzDS) throws ValidationException {
    if (authzDS.getDecision() == null) {
        throw new ValidationException("Decision required");
    }
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:12,
代码来源:AuthzDecisionStatementSchemaValidator.java

示例26: validateActions

点赞 1

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
/**
 * Checks that one or more Action is present.
 * 
 * @param authzDS
 * @throws ValidationException
 */
protected void validateActions(AuthzDecisionStatement authzDS) throws ValidationException {
    if (authzDS.getActions() == null || authzDS.getActions().size() < 1) {
        throw new ValidationException("One or more Actions required");
    }
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:12,
代码来源:AuthzDecisionStatementSchemaValidator.java

示例27: getAuthzDecisionStatements

点赞 1

import org.opensaml.saml2.core.AuthzDecisionStatement; //导入依赖的package包/类
public List<AuthzDecisionStatement> getAuthzDecisionStatements() {

		return null;
	}
 

开发者ID:amagdenko,
项目名称:oiosaml.java,
代码行数:5,
代码来源:AssertionStubImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)