Class AbstractErrorObjectMapping
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.oidc.op.profile.AbstractErrorObjectMapping
- All Implemented Interfaces:
EventIdToErrorObjectMapping,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AuthorizationErrorObjectMapping,IntrospectionErrorObjectMapping,PushedAuthorizationErrorObjectMapping,RegistrationErrorObjectMapping,RevocationErrorObjectMapping,TokenErrorObjectMapping,UserInfoErrorObjectMapping
public class AbstractErrorObjectMapping
extends AbstractIdentifiableInitializableComponent
implements EventIdToErrorObjectMapping
A base class for classes implementing
EventIdToErrorObjectMapping.- Since:
- 4.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.nimbusds.oauth2.sdk.ErrorObjectError object mapped to the event ID.private StringEvent ID for the error object mapping. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcom.nimbusds.oauth2.sdk.ErrorObjectGet the error object mapped to the event ID.Get the event ID for the error object mapping.voidsetErrorObject(com.nimbusds.oauth2.sdk.ErrorObject error) Set error object mapped to the event ID.voidsetEventId(String id) Set event ID for the error object mapping.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
eventId
Event ID for the error object mapping. -
errorObject
Error object mapped to the event ID.
-
-
Constructor Details
-
AbstractErrorObjectMapping
public AbstractErrorObjectMapping()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
setEventId
Set event ID for the error object mapping.- Parameters:
id- event id
-
getEventId
Get the event ID for the error object mapping.- Specified by:
getEventIdin interfaceEventIdToErrorObjectMapping- Returns:
- event id
-
setErrorObject
public void setErrorObject(@Nonnull com.nimbusds.oauth2.sdk.ErrorObject error) Set error object mapped to the event ID.- Parameters:
error- error object
-
getErrorObject
@Nonnull public com.nimbusds.oauth2.sdk.ErrorObject getErrorObject()Get the error object mapped to the event ID.- Specified by:
getErrorObjectin interfaceEventIdToErrorObjectMapping- Returns:
- error object
-