Methods Summary |
---|
public static boolean | hasPassword(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSecurityPolicyNS(assertion)){
return false;
}
if(assertion.getName().getLocalPart().equals(NoPassword)){
return true;
}
return false;
|
public static boolean | isAddress(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isAddressingNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Address)) {
return true;
}
return false;
|
public static boolean | isAddressingNS(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( AddressingVersion.MEMBER.getNsUri().equals(pa.getName().getNamespaceURI()) ) {
return true;
}
if ( AddressingVersion.W3C.getNsUri().equals(pa.getName().getNamespaceURI()) ) {
return true;
}
return false;
|
public static boolean | isAlgorithmAssertion(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( isSecurityPolicyNS(pa) ) {
if(pa.getName().getLocalPart().equals(AlgorithmSuite)) {
return true;
}
}
return false;
|
public static boolean | isAsymmetricBinding(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(AsymmetricBinding)) {
return true;
}
return false;
|
public static boolean | isAsymmetricBinding(javax.xml.namespace.QName assertion)
if ( assertion.getLocalPart().equals(Constants.AsymmetricBinding) &&
assertion.getNamespaceURI().equals(Constants.SECURITY_POLICY_NS)) {
return true;
}
return false;
|
public static boolean | isAuthenticationType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(AuthenticationType.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isBinding(com.sun.xml.ws.policy.PolicyAssertion policyAssertion)
if ( !isSecurityPolicyNS(policyAssertion )) {
return false;
}
String name = policyAssertion.getName().getLocalPart();
if(name.equals(SymmetricBinding) ||
name.equals(AsymmetricBinding) ||
name.equals(TransportBinding)) {
return true;
}
return false;
|
public static boolean | isBody(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if(assertion.getName().getLocalPart().equals(Constants.Body)){
return true;
}
return false;
|
public static boolean | isBootstrapPolicy(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion) ) {
return false;
}
if(assertion.getName().getLocalPart().equals(BootstrapPolicy)) {
return true;
}
return false;
|
public static boolean | isCanonicalizationAlgorithm(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(CanonicalizationAlgorithm.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isClaimsElement(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(Claims.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isComputedKeyAlgorithm(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(ComputedKeyAlgorithm.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isConfigPolicyAssertion(com.sun.xml.ws.policy.PolicyAssertion assertion)
String uri = assertion.getName().getNamespaceURI();
if(SUN_SECURE_CLIENT_CONVERSATION_POLICY_NS.equals(uri) || SUN_TRUST_CLIENT_SECURITY_POLICY_NS.equals(uri) ||
SUN_SECURE_SERVER_CONVERSATION_POLICY_NS.equals(uri) || SUN_TRUST_SERVER_SECURITY_POLICY_NS.equals(uri) ||
SUN_WSS_SECURITY_CLIENT_POLICY_NS.equals(uri) ||SUN_WSS_SECURITY_SERVER_POLICY_NS.equals(uri) ){
return true;
}
return false;
|
public static boolean | isContentOnlyAssertion(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(OnlySignEntireHeadersAndBody)) {
return true;
}
return false;
|
public static boolean | isCreated(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isUtilityNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Created)) {
return true;
}
return false;
|
public static boolean | isEncryptBeforeSign(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(EncryptBeforeSigning)) {
return true;
}
return false;
|
public static boolean | isEncryptParts(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(EncryptedParts)) {
return true;
}
return false;
|
public static boolean | isEncryptSignature(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(EncryptSignature)) {
return true;
}
return false;
|
public static boolean | isEncryptedElements(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(EncryptedElements)) {
return true;
}
return false;
|
public static boolean | isEncryption(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isTrustNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Encryption)) {
return true;
}
return false;
|
public static boolean | isEncryptionAlgorithm(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(EncryptionAlgorithm.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isEncryptionToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(EncryptionToken)) {
return true;
}
return false;
|
public static boolean | isEndorsedSupportingToken(com.sun.xml.ws.policy.PolicyAssertion policyAssertion)
if ( !isSecurityPolicyNS(policyAssertion )) {
return false;
}
if(policyAssertion.getName().getLocalPart().equals(EndorsingSupportingTokens)) {
return true;
}
return false;
|
public static boolean | isEndpointReference(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isAddressingNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(EndpointReference)) {
return true;
}
return false;
|
public static boolean | isEntropyElement(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(Entropy.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isExclusiveC14NWithComments(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSunPolicyNS(assertion)){
return false;
}
if ( assertion.getName().getLocalPart().equals(ExclusiveC14NWithComments)) {
return true;
}
return false;
|
public static boolean | isExclusiveC14NWithCommentsForCm(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSunPolicyNS(assertion)){
return false;
}
if ( assertion.getName().getLocalPart().equals(ExclusiveC14NWithComments)) {
if("true".equals(assertion.getAttributeValue(new QName(SUN_WSS_SECURITY_SERVER_POLICY_NS, "forCm"))))
return true;
}
return false;
|
public static boolean | isExclusiveC14NWithCommentsForTransforms(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSunPolicyNS(assertion)){
return false;
}
if ( assertion.getName().getLocalPart().equals(ExclusiveC14NWithComments)) {
if("true".equals(assertion.getAttributeValue(new QName(SUN_WSS_SECURITY_SERVER_POLICY_NS, "forTransforms"))))
return true;
}
return false;
|
public static boolean | isExpires(com.sun.xml.ws.policy.PolicyAssertion assertion)
if (!isUtilityNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Expires)) {
return true;
}
return false;
|
public static boolean | isHeader(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(HEADER)) {
return true;
}
return false;
|
public static boolean | isHttpsToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(Constants.HttpsToken)) {
return true;
}
return false;
|
public static boolean | isIncludeTimestamp(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(IncludeTimestamp)) {
return true;
}
return false;
|
public static boolean | isInclusiveC14N(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(InclusiveC14N)) {
return true;
}
return false;
|
public static boolean | isInclusiveC14NWithComments(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSunPolicyNS(assertion)){
return false;
}
if ( assertion.getName().getLocalPart().equals(InclusiveC14NWithComments)) {
return true;
}
return false;
|
public static boolean | isInclusiveC14NWithCommentsForCm(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSunPolicyNS(assertion)){
return false;
}
if ( assertion.getName().getLocalPart().equals(InclusiveC14NWithComments)) {
if("true".equals(assertion.getAttributeValue(new QName(SUN_WSS_SECURITY_SERVER_POLICY_NS, "forCm"))))
return true;
}
return false;
|
public static boolean | isInclusiveC14NWithCommentsForTransforms(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isSunPolicyNS(assertion)){
return false;
}
if ( assertion.getName().getLocalPart().equals(InclusiveC14NWithComments)) {
if("true".equals(assertion.getAttributeValue(new QName(SUN_WSS_SECURITY_SERVER_POLICY_NS, "forTransforms"))))
return true;
}
return false;
|
public static boolean | isInitiatorToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(InitiatorToken)) {
return true;
}
return false;
|
public static boolean | isIssuedToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(IssuedToken)) {
return true;
}
return false;
|
public static boolean | isIssuer(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if(assertion.getName().getLocalPart().equals(Issuer)) {
return true;
}
return false;
|
public static boolean | isKerberosToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(Constants.KerberosToken)) {
return true;
}
return false;
|
public static boolean | isKerberosTokenType(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
String localPart = token.getName().getLocalPart();
if(localPart.equals(WssKerberosV5ApReqToken11)) {
return true;
}else if(localPart.equals(WssGssKerberosV5ApReqToken11)){
return true;
}
return false;
|
public static boolean | isKeySize(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isTrustNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(KeySize)) {
return true;
}
return false;
|
public static boolean | isKeyType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isTrustNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(KeyType)) {
return true;
}
return false;
|
public static boolean | isLax(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Lax)) {
return true;
}
return false;
|
public static boolean | isLaxTsFirst(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(LaxTsFirst)) {
return true;
}
return false;
|
public static boolean | isLaxTsLast(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(LaxTsLast)) {
return true;
}
return false;
|
public static boolean | isLifeTime(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isTrustNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Lifetime)) {
return true;
}
return false;
|
public static boolean | isMessageLayout(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(Layout)) {
return true;
}
return false;
|
public static boolean | isPortType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isAddressingNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(PortType)) {
return true;
}
return false;
|
public static boolean | isProofEncryption(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isTrustNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(ProofEncryption)) {
return true;
}
return false;
|
public static boolean | isProtectTokens(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(ProtectTokens)) {
return true;
}
return false;
|
public static boolean | isProtectionToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(ProtectionToken)) {
return true;
}
return false;
|
public static boolean | isRecipientToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RecipientToken)) {
return true;
}
return false;
|
public static boolean | isReferenceParameters(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isAddressingNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(ReferenceParameters)) {
return true;
}
return false;
|
public static boolean | isReferenceProperties(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isAddressingNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(ReferenceProperties)) {
return true;
}
return false;
|
public static boolean | isRelToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(Constants.RelToken)) {
return true;
}
return false;
|
public static boolean | isRelTokenType(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
String localPart = token.getName().getLocalPart();
if(localPart.equals(WssRelV10Token10)) {
return true;
}else if(localPart.equals(WssRelV10Token11)){
return true;
}else if(localPart.equals(WssRelV20Token10)){
return true;
}else if(localPart.equals(WssRelV20Token11)){
return true;
}
return false;
|
public static boolean | isRequestSecurityTokenTemplate(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RequestSecurityTokenTemplate)) {
return true;
}
return false;
|
public static boolean | isRequestType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(RequestType.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isRequireClientEntropy(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(RequireClientEntropy)) {
return true;
}
return false;
|
public static boolean | isRequireDerivedKeys(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( RequireDerivedKeys.toString().equals(assertion.getName().getLocalPart().toString())) {
return true;
}
return false;
|
public static boolean | isRequireExternalReference(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RequireExternalReference)) {
return true;
}
return false;
|
public static boolean | isRequireExternalUriReference(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RequireExternalUriReference)) {
return true;
}
return false;
|
public static boolean | isRequireInternalReference(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RequireInternalReference)) {
return true;
}
return false;
|
public static boolean | isRequireKeyIR(com.sun.xml.ws.policy.PolicyAssertion assertion)
if (!isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RequireKeyIdentifierReference)) {
return true;
}
return false;
|
public static boolean | isRequireServerEntropy(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(RequireServerEntropy)) {
return true;
}
return false;
|
public static boolean | isRequiredElements(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(isSecurityPolicyNS(assertion)){
return false;
}
if(assertion.getName().getLocalPart().equals(RequiredElements)){
return true;
}
return false;
|
public static boolean | isRequiredKey(com.sun.xml.ws.policy.PolicyAssertion assertion)
return false;
|
public static boolean | isSC10SecurityContextToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if(assertion.getName().getLocalPart().equals(Constants.SC10SecurityContextToken)) {
return true;
}
return false;
|
public static boolean | isSTRTransform10(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(STRTransform10)) {
return true;
}
return false;
|
public static boolean | isSamlToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(SamlToken)) {
return true;
}
return false;
|
public static boolean | isSamlTokenType(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
String localPart = token.getName().getLocalPart();
if(localPart.equals(WssSamlV10Token10)) {
return true;
}else if(localPart.equals(WssSamlV10Token11)){
return true;
}else if(localPart.equals(WssSamlV11Token10)){
return true;
}else if(localPart.equals(WssSamlV20Token11)){
return true;
}else if(localPart.equals(WssSamlV11Token11)){
return true;
}
return false;
|
public static boolean | isSecureConversationToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(SecureConversationToken)) {
return true;
}
return false;
|
public static boolean | isSecurityContextToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(Constants.SecurityContextToken)) {
return true;
}
return false;
|
public static boolean | isSecurityContextTokenType(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
String localPart = token.getName().getLocalPart();
if(localPart.equals(SC10SecurityContextToken)) {
return true;
}
return false;
|
public static boolean | isSecurityPolicyNS(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( Constants.SECURITY_POLICY_NS.equals(pa.getName().getNamespaceURI()) ) {
return true;
}
return false;
|
public static boolean | isServiceName(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isAddressingNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(ServiceName)) {
return true;
}
return false;
|
public static boolean | isSignBeforeEncrypt(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(SignBeforeEncrypting)) {
return true;
}
return false;
|
public static boolean | isSignWith(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(SignWith.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isSignatureAlgorithm(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(SignatureAlgorithm.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isSignatureToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(SignatureToken)) {
return true;
}
return false;
|
public static boolean | isSignedElements(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(SignedElements)) {
return true;
}
return false;
|
public static boolean | isSignedEndorsingSupportingToken(com.sun.xml.ws.policy.PolicyAssertion policyAssertion)
if ( !isSecurityPolicyNS(policyAssertion )) {
return false;
}
if(policyAssertion.getName().getLocalPart().equals(SignedEndorsingSupportingTokens)) {
return true;
}
return false;
|
public static boolean | isSignedParts(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(SignedParts)) {
return true;
}
return false;
|
public static boolean | isSignedSupportingToken(com.sun.xml.ws.policy.PolicyAssertion policyAssertion)
if ( !isSecurityPolicyNS(policyAssertion )) {
return false;
}
if(policyAssertion.getName().getLocalPart().equals(SignedSupportingTokens)) {
return true;
}
return false;
|
public static boolean | isStrict(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(Strict)) {
return true;
}
return false;
|
public static boolean | isSunPolicyNS(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( Constants.SUN_WSS_SECURITY_SERVER_POLICY_NS.equals(pa.getName().getNamespaceURI()) ||
Constants.SUN_WSS_SECURITY_CLIENT_POLICY_NS.equals(pa.getName().getNamespaceURI())) {
return true;
}
return false;
|
public static boolean | isSupportClientChallenge(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(MustSupportClientChallenge)) {
return true;
}
return false;
|
public static boolean | isSupportIssuedTokens(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(MustSupportIssuedTokens)) {
return true;
}
return false;
|
public static boolean | isSupportServerChallenge(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(MustSupportServerChallenge)) {
return true;
}
return false;
|
public static boolean | isSupportingToken(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(SupportingTokens)){
return true;
}
return false;
|
public static boolean | isSupportingTokens(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(isSignedSupportingToken(assertion) || isEndorsedSupportingToken(assertion)||
isSignedEndorsingSupportingToken(assertion) || isSupportingToken(assertion)){
return true;
}
return false;
|
public static boolean | isSymmetricBinding(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(SymmetricBinding)) {
return true;
}
return false;
|
public static boolean | isSymmetricBinding(javax.xml.namespace.QName assertion)
if ( assertion.getLocalPart().equals(Constants.SymmetricBinding) &&
assertion.getNamespaceURI().equals(Constants.SECURITY_POLICY_NS)) {
return true;
}
return false;
|
public static boolean | isTarget(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion) ) {
return false;
}
String name = assertion.getName().getLocalPart();
if(name.equals(EncryptedParts) ||
name.equals(SignedParts) ||
name.equals(SignedElements) ||
name.equals(EncryptedElements)) {
return true;
}
return false;
|
public static boolean | isToken(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( !isSecurityPolicyNS(pa) ) {
return false;
}
if(pa.getName().getLocalPart().equals(EncryptionToken) ) {
return true;
}else if(pa.getName().getLocalPart().equals(SignatureToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(InitiatorToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(HttpsToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(IssuedToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(KerberosToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(ProtectionToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(RecipientToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(SupportingTokens)) {
return true;
}else if(pa.getName().getLocalPart().equals(SC10SecurityContextToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(SamlToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(UsernameToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(X509Token)) {
return true;
}else if(pa.getName().getLocalPart().equals(SecureConversationToken)) {
return true;
}else if(pa.getName().getLocalPart().equals(TransportToken)) {
return true;
}
return false;
|
public static boolean | isTokenReferenceType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if ( assertion.getName().getLocalPart().equals(RequireKeyIdentifierReference)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(RequireThumbprintReference)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(RequireEmbeddedTokenReference)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(RequireIssuerSerialReference)) {
return true;
}
return false;
|
public static boolean | isTokenType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(WssX509V1Token10)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509V3Token10)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509Pkcs7Token10)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509PkiPathV1Token10)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509V1Token11)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509V3Token11)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509Pkcs7Token11)) {
return true;
} else if ( assertion.getName().getLocalPart().equals(WssX509PkiPathV1Token11)) {
return true;
}
return false;
|
public static boolean | isTransportBinding(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(TransportBinding)) {
return true;
}
return false;
|
public static boolean | isTransportBinding(javax.xml.namespace.QName assertion)
if ( assertion.getLocalPart().equals(Constants.TransportBinding) &&
assertion.getNamespaceURI().equals(Constants.SECURITY_POLICY_NS)) {
return true;
}
return false;
|
public static boolean | isTrust10(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if(assertion.getName().getLocalPart().equals(Trust10)) {
return true;
}
return false;
|
public static boolean | isTrustNS(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( Constants.TRUST_NS.equals(pa.getName().getNamespaceURI()) ) {
return true;
}
return false;
|
public static boolean | isTrustTokenType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if(!isTrustNS(assertion)){
return false;
}
if(TokenType.equals(assertion.getName().getLocalPart())){
return true;
}
return false;
|
public static boolean | isUseKey(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isTrustNS(assertion)) {
return false;
}
if ( assertion.getName().getLocalPart().equals(UseKey)) {
return true;
}
return false;
|
public static boolean | isUsernameToken(com.sun.xml.ws.policy.PolicyAssertion token)
if ( !isSecurityPolicyNS(token )) {
return false;
}
if(token.getName().getLocalPart().equals(UsernameToken)) {
return true;
}
return false;
|
public static boolean | isUsernameTokenType(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(WssUsernameToken10) ||
assertion.getName().getLocalPart().equals(WssUsernameToken11)) {
return true;
}
return false;
|
public static boolean | isUtilityNS(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( Constants.UTILITY_NS.equals(pa.getName().getNamespaceURI()) ) {
return true;
}
return false;
|
public static com.sun.xml.ws.security.policy.AlgorithmSuiteValue | isValidAlgorithmSuiteValue(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return null;
}
if ( assertion.getName().getLocalPart().equals(Basic256) ) {
return AlgorithmSuiteValue.Basic256;
} else if ( assertion.getName().getLocalPart().equals(Basic192)) {
return AlgorithmSuiteValue.Basic192;
} else if ( assertion.getName().getLocalPart().equals(Basic128)) {
return AlgorithmSuiteValue.Basic128;
} else if ( assertion.getName().getLocalPart().equals(TripleDes )) {
return AlgorithmSuiteValue.TripleDes;
} else if ( assertion.getName().getLocalPart().equals(Basic256Rsa15)) {
return AlgorithmSuiteValue.Basic256Rsa15;
} else if ( assertion.getName().getLocalPart().equals(Basic192Rsa15)) {
return AlgorithmSuiteValue.Basic192Rsa15;
} else if ( assertion.getName().getLocalPart().equals(Basic128Rsa15)) {
return AlgorithmSuiteValue.Basic128Rsa15;
} else if ( assertion.getName().getLocalPart().equals(TripleDesRsa15)) {
return AlgorithmSuiteValue.TripleDesRsa15;
} else if ( assertion.getName().getLocalPart().equals(Basic256Sha256)) {
return AlgorithmSuiteValue.Basic256Sha256;
} else if ( assertion.getName().getLocalPart().equals(Basic192Sha256)) {
return AlgorithmSuiteValue.Basic192Sha256;
} else if ( assertion.getName().getLocalPart().equals(Basic128Sha256)) {
return AlgorithmSuiteValue.Basic128Sha256;
} else if ( assertion.getName().getLocalPart().equals(TripleDesSha256)) {
return AlgorithmSuiteValue.TripleDesSha256;
} else if ( assertion.getName().getLocalPart().equals(Basic256Sha256Rsa15)) {
return AlgorithmSuiteValue.Basic256Sha256Rsa15;
} else if ( assertion.getName().getLocalPart().equals(Basic192Sha256Rsa15)) {
return AlgorithmSuiteValue.Basic192Sha256Rsa15;
} else if ( assertion.getName().getLocalPart().equals(Basic128Sha256Rsa15)) {
return AlgorithmSuiteValue.Basic128Sha256Rsa15;
} else if ( assertion.getName().getLocalPart().equals(TripleDesSha256Rsa15)) {
return AlgorithmSuiteValue.TripleDesSha256Rsa15;
}
return null;
|
public static boolean | isWSS10(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if(assertion.getName().getLocalPart().equals(Wss10)) {
return true;
}
return false;
|
public static boolean | isWSS10PolicyContent(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(MustSupportRefKeyIdentifier)) {
return true;
}else if( assertion.getName().getLocalPart().equals(MustSupportRefIssuerSerial)) {
return true;
}else if(assertion.getName().getLocalPart().equals(RequireExternalUriReference)) {
return true;
}else if(assertion.getName().getLocalPart().equals(RequireEmbeddedTokenReference)) {
return true;
}
return false;
|
public static boolean | isWSS11(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion)) {
return false;
}
if(assertion.getName().getLocalPart().equals(Wss11)) {
return true;
}
return false;
|
public static boolean | isWSS11PolicyContent(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion )) {
return false;
}
if(assertion.getName().getLocalPart().equals(MustSupportRefKeyIdentifier)) {
return true;
}else if( assertion.getName().getLocalPart().equals(MustSupportRefIssuerSerial)) {
return true;
}else if(assertion.getName().getLocalPart().equals(MustSupportRefThumbprint)) {
return true;
}else if(assertion.getName().getLocalPart().equals(MustSupportRefEncryptedKey)) {
return true;
}else if(assertion.getName().getLocalPart().equals(RequireSignatureConfirmation)) {
return true;
}else if(assertion.getName().getLocalPart().equals(RequireExternalUriReference)) {
return true;
}else if(assertion.getName().getLocalPart().equals(RequireEmbeddedTokenReference)) {
return true;
}
return false;
|
public static boolean | isX509Token(com.sun.xml.ws.policy.PolicyAssertion policyAssertion)
if ( !isSecurityPolicyNS(policyAssertion )) {
return false;
}
if(policyAssertion.getName().getLocalPart().equals(X509Token)) {
return true;
}
return false;
|
public static boolean | isXPath(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isSecurityPolicyNS(assertion) ) {
return false;
}
if ( assertion.getName().getLocalPart().equals(XPath) ) {
return true;
}
return false;
|
public static boolean | isXPathFilter20(com.sun.xml.ws.policy.PolicyAssertion assertion)
if ( !isXpathNS(assertion) ) {
return false;
}
if ( assertion.getName().getLocalPart().equals(XPathFilter20) ) {
return true;
}
return false;
|
public static boolean | isXpathNS(com.sun.xml.ws.policy.PolicyAssertion pa)
if ( Constants.XPATH_NS.equals(pa.getName().getNamespaceURI()) ) {
return true;
}
return false;
|