com.sap.cloud.sdk.cloudplatform.security.AuthToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of security-scp-cf Show documentation
Show all versions of security-scp-cf Show documentation
Implementation of the Cloud platform abstraction for security functionality
on the SAP Cloud Platform (Cloud Foundry).
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.cloudplatform.security;
import javax.annotation.Nonnull;
import com.auth0.jwt.interfaces.DecodedJWT;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Class providing access to the authorization token of a request on SAP Cloud Platform Cloud Foundry.
*/
@RequiredArgsConstructor
@EqualsAndHashCode
public class AuthToken
{
/**
* The {@link DecodedJWT} bearer contained in the Authorization header of the given request.
*/
@Getter
@Nonnull
private final DecodedJWT jwt;
}