-
Notifications
You must be signed in to change notification settings - Fork 21
/
STSConfiguration.java
96 lines (79 loc) · 2.5 KB
/
STSConfiguration.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.api.security.trust.config;
import javax.security.auth.callback.CallbackHandler;
import java.util.Map;
/** This interface contains the attributes for configuring an STS.
*
* @author Jiandong Guo
*/
public interface STSConfiguration {
/**
* Gets the implementation class of <code>WSTrustContract</code> for this STS.
*
* @return class name
*/
String getType();
/**
* Get the Issuer for the STS which is a unique string identifing the STS.
*
*/
String getIssuer();
/**
* Retruns true if the issued tokens from this STS must be encrypted.
*
*/
boolean getEncryptIssuedToken();
/**
* Retruns true if the issued keys from this STS must be encrypted.
*
*/
boolean getEncryptIssuedKey();
long getIssuedTokenTimeout();
/**
* Set <code>CallbackHandler</code> for handling certificates for the
* service provider and keys for the STS.
*
*/
void setCallbackHandler(CallbackHandler callbackHandler);
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is any object.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly.
*
*
* @return
* always non-null
*/
Map<String, Object> getOtherOptions();
/**
* Get <code>CallbackHandler</code> for handling certificates for the
* service provider and keys for the STS.
*
*/
CallbackHandler getCallbackHandler();
// void addTokenGenerator(IssuedTokenGenerator tokenGen, String tokenType);
//IssuedTokenGenerator getTokenGenerator(String tokenType);
/**
* Add <code>TrustMetadata</code> for the service provider as identified by the given
* end point.
*/
void addTrustSPMetadata(TrustSPMetadata data, String spEndpoint);
/**
* Get <code>TrustMetadata</code> for the service provider as identified by the given
* end point.
*/
TrustSPMetadata getTrustSPMetadata(String spEndpoint);
}