Examples of PolicyGenerationException


Examples of com.sun.xml.wss.impl.policy.PolicyGenerationException

                isDynamicSecurityPolicy = true;
            } else
            if (!Class.forName("com.sun.xml.wss.impl.policy.mls.WSSPolicy").
                isAssignableFrom(policy.getClass())) {
                // log
                throw new PolicyGenerationException
                           ("Invalid SecurityPolicy type");
            }
        } catch (ClassNotFoundException cnfe) {}
    }
View Full Code Here

Examples of com.sun.xml.wss.impl.policy.PolicyGenerationException

            if (isReadOnly()) {
                throw new RuntimeException("Can not create a feature binding of Timestamp type for ReadOnly " + _policyIdentifier);
            }
           
            if (!(_policyIdentifier == PolicyTypeUtil.USERNAMETOKEN_TYPE) && !(_policyIdentifier == PolicyTypeUtil.SIGNATURE_POLICY_FEATUREBINDING_TYPE)) {
                throw new PolicyGenerationException("Can not create a feature binding of Timestamp type for " + _policyIdentifier);
            }
            this._featureBinding = new TimestampPolicy();
            return _featureBinding;
        }
View Full Code Here

Examples of com.sun.xml.wss.impl.policy.PolicyGenerationException

                    "Can not create a feature binding of UsernameToken type for ReadOnly " + _policyIdentifier);
        }
       
        if ((PolicyTypeUtil.SIGNATURE_POLICY_TYPE == _policyIdentifier) ||
                (PolicyTypeUtil.ENCRYPTION_POLICY_TYPE == _policyIdentifier)) {
            throw new PolicyGenerationException (
                    "Can not create a feature binding of UsernameToken type for " + _policyIdentifier);
        }
       
        this._featureBinding = new AuthenticationTokenPolicy.UsernameTokenBinding ();
        return _featureBinding;
View Full Code Here

Examples of com.sun.xml.wss.impl.policy.PolicyGenerationException

                    "Can not create a feature binding of X509Certificate type for ReadOnly " + _policyIdentifier);
        }
       
        if ((PolicyTypeUtil.SIGNATURE_POLICY_TYPE == _policyIdentifier) ||
                (PolicyTypeUtil.ENCRYPTION_POLICY_TYPE == _policyIdentifier)) {
            throw new PolicyGenerationException (
                    "Can not create a feature binding of X509Certificate type for " + _policyIdentifier);
        }
       
        this._featureBinding = new AuthenticationTokenPolicy.X509CertificateBinding ();
        return _featureBinding;
View Full Code Here

Examples of com.sun.xml.wss.impl.policy.PolicyGenerationException

                    "Can not create a feature binding of SAMLAssertion type for ReadOnly " + _policyIdentifier);
        }
       
        if ((PolicyTypeUtil.SIGNATURE_POLICY_TYPE == _policyIdentifier) ||
                (PolicyTypeUtil.ENCRYPTION_POLICY_TYPE == _policyIdentifier)) {
            throw new PolicyGenerationException (
                    "Can not create a feature binding of SAMLAssertion type for " + _policyIdentifier);
        }
       
        this._featureBinding = new AuthenticationTokenPolicy.SAMLAssertionBinding ();
        return _featureBinding;
View Full Code Here

Examples of com.sun.xml.wss.impl.policy.PolicyGenerationException

     * return a new concrete MLSPolicy instance
     * @return MLSPolicy
     * @exception PolicyGenerationException
     */
    public MLSPolicy newMLSPolicy () throws PolicyGenerationException {
        throw new PolicyGenerationException ("Unsupported Operation");
    }     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.