Package com.sap.cloud.security.token
Class XsuaaScopeConverter
- java.lang.Object
-
- com.sap.cloud.security.token.XsuaaScopeConverter
-
- All Implemented Interfaces:
ScopeConverter,Serializable
public class XsuaaScopeConverter extends Object implements ScopeConverter
This utility class translates XSUAA scopes that are specified in global form and prefixed with the "appId.", to local ones.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XsuaaScopeConverter(String appId)Creates an instance of the converter.
-
-
-
Constructor Detail
-
XsuaaScopeConverter
public XsuaaScopeConverter(String appId)
Creates an instance of the converter.- Parameters:
appId- the xs application name e.g. myapp!t123.
-
-
Method Detail
-
convert
public Set<String> convert(Collection<String> scopes)
- Specified by:
convertin interfaceScopeConverter
-
-