@Immutable public class DeniedReason extends Object
LoginReason.AUTHENTICATION_DENIED
Modifier and Type | Field and Description |
---|---|
static String |
X_DENIED_HEADER
The HTTP header that is used to
|
Constructor and Description |
---|
DeniedReason(String reasonCode)
Creates a new DenialReason with no additional properties.
|
DeniedReason(String reasonCode,
Map<String,String> reasonSpecificProperties)
Creates a new DenialReason with properties.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Returns a string representation of this DenialReason, which is suitable for inclusion in a HTTP response header.
|
String |
toString()
Returns a string representation of the object.
|
public static final String X_DENIED_HEADER
public DeniedReason(String reasonCode)
reasonCode
- the reason code for the denialpublic String asString()
Copyright © 2002-2022 Atlassian. All Rights Reserved.