01: /*
02: * BinarySecurityToken.java
03: *
04: * Created on August 2, 2006, 10:37 AM
05: *
06: * The contents of this file are subject to the terms
07: * of the Common Development and Distribution License
08: * (the License). You may not use this file except in
09: * compliance with the License.
10: *
11: * You can obtain a copy of the license at
12: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
13: * See the License for the specific language governing
14: * permissions and limitations under the License.
15: *
16: * When distributing Covered Code, include this CDDL
17: * Header Notice in each file and include the License file
18: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
19: * If applicable, add the following below the CDDL Header,
20: * with the fields enclosed by brackets [] replaced by
21: * you own identifying information:
22: * "Portions Copyrighted [year] [name of copyright owner]"
23: *
24: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
25: */
26:
27: package com.sun.xml.ws.security.opt.api.keyinfo;
28:
29: import java.security.cert.X509Certificate;
30:
31: /**
32: * Represents binary-formatted security tokens
33: * @author K.Venugopal@sun.com
34: */
35: public interface BinarySecurityToken extends Token {
36: /*
37: * The ValueType attribute is used to indicate the "value space" of the encoded binary
38: * data (e.g. an X.509 certificate). The ValueType attribute allows a URI that defines the
39: * value type and space of the encoded binary data.
40: */
41: String getValueType();
42:
43: /*
44: * BinarySecurityToken/@EncodingType
45: * The EncodingType attribute is used to indicate, using a URI, the encoding format of the
46: * binary data (e.g., base64 encoded). A new attribute is introduced, as there are issues
47: * with the current schema validation tools that make derivations of mixed simple and
48: * complex types difficult within XML Schema. The EncodingType attribute is interpreted
49: * to indicate the encoding format of the element.
50: */
51: String getEncodingType();
52:
53: /*
54: * returns contents of the BinarySecurityToken
55: */
56: byte[] getTokenValue();
57:
58: X509Certificate getCertificate();
59: }
|