01: /*
02: * PolicyVerifier.java
03: *
04: * Created on August 7, 2005, 8:52 PM
05: */
06:
07: /*
08: * The contents of this file are subject to the terms
09: * of the Common Development and Distribution License
10: * (the License). You may not use this file except in
11: * compliance with the License.
12: *
13: * You can obtain a copy of the license at
14: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
15: * See the License for the specific language governing
16: * permissions and limitations under the License.
17: *
18: * When distributing Covered Code, include this CDDL
19: * Header Notice in each file and include the License file
20: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
21: * If applicable, add the following below the CDDL Header,
22: * with the fields enclosed by brackets [] replaced by
23: * you own identifying information:
24: * "Portions Copyrighted [year] [name of copyright owner]"
25: *
26: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
27: */
28:
29: package com.sun.xml.wss.impl.policy.spi;
30:
31: import com.sun.xml.wss.impl.PolicyViolationException;
32: import com.sun.xml.wss.impl.policy.*;
33:
34: /**
35: * This is an internal interface not exposed to developer.
36: *
37: * @author K.Venugopal@sun.com
38: */
39:
40: public interface PolicyVerifier {
41:
42: /**
43: *
44: * @param configPolicy Policy configured for the incoming message.
45: * @param recvdPolicy policy infered from the incoming message.
46: * @throws com.sun.xml.wss.PolicyViolationException when policy infered from incoming message does not match with what
47: * is configured.
48: *
49: */
50: public void verifyPolicy(SecurityPolicy recvdPolicy,
51: SecurityPolicy configPolicy)
52: throws PolicyViolationException;
53: }
|