Package com.ptc.jwt.framework
Class JWTAttributesDelegate
java.lang.Object
com.ptc.jwt.framework.JWTAttributesDelegate
NOTE: The attribute delegate framework is designed to retrieve only key and value from the request. Attribute label
and visibility has to be in control of this delegate.
Label and visibility are crucial during token generation and should not be in control of the request. Any change in this design will need a security review.
Supported API: true
Label and visibility are crucial during token generation and should not be in control of the request. Any change in this design will need a security review.
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeInfo(Map<String, String[]> reqAttrInfoMap) Default implementation will set the key value in the label and make all attributes visible.
-
Method Details
-
getAttributeInfo
public List<JWTAttributeInfo> getAttributeInfo(Map<String, String[]> reqAttrInfoMap) throws WTExceptionDefault implementation will set the key value in the label and make all attributes visible. Only redirect url attribute is marked hidden. Subclass needs to ensure super method is invoked so that attributes like JWT_REDIRECT_URL can be handled by this class. public ListgetAttributeInfo(Mapinvalid input: '<'String, String[]> reqAttrInfoMap){ List attrInfoLst = super.getAttributeInfo(reqAttrInfoMap); //Update the data in attrInfoLst as per your requirement and send it back. return attrInfoLst; } - Parameters:
reqAttrInfoMap-- Returns:
- Throws:
WTException-
Supported API: true
-