01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the License). You may not use this file except in
05: * compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
09: * See the License for the specific language governing
10: * permissions and limitations under the License.
11: *
12: * When distributing Covered Code, include this CDDL
13: * Header Notice in each file and include the License file
14: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
15: * If applicable, add the following below the CDDL Header,
16: * with the fields enclosed by brackets [] replaced by
17: * you own identifying information:
18: * "Portions Copyrighted [year] [name of copyright owner]"
19: *
20: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
21: */
22:
23: package com.sun.xml.ws.security;
24:
25: import java.util.Date;
26: import java.util.Set;
27:
28: /**
29: * The </code>SecurityContextTokenInfo</code> class represents security parameters
30: * which will be saved in the <code>Session</code> object so that whenever the endpoint
31: * crashes the security negotiations can be resumed from its original state and no new
32: * negotiations need to be done.
33: *
34: */
35: public interface SecurityContextTokenInfo {
36:
37: String getIdentifier();
38:
39: void setIdentifier(String identifier);
40:
41: String getExternalId();
42:
43: void setExternalId(String externalId);
44:
45: byte[] getSecret();
46:
47: byte[] getInstanceSecret(String instance);
48:
49: void addInstance(String instance, byte[] key);
50:
51: Date getCreationTime();
52:
53: void setCreationTime(Date creationTime);
54:
55: Date getExpirationTime();
56:
57: void setExpirationTime(Date expirationTime);
58:
59: Set getInstanceKeys();
60:
61: IssuedTokenContext getIssuedTokenContext();
62:
63: IssuedTokenContext getIssuedTokenContext(
64: SecurityTokenReference reference);
65:
66: }
|