com.microsoft.aad.adal4j.ClientAssertion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adal4j Show documentation
Show all versions of adal4j Show documentation
Azure active directory library for java gives you the ability to add Windows Azure Active Directory authentication to your application with just a few lines of additional code. Using our ADAL SDKs you can quickly and easily extend your existing application to all the employees that use Windows Azure AD and Active Directory on-premises using Active Directory Federation Services, including Office365 customers.
/*******************************************************************************
* Copyright © Microsoft Open Technologies, Inc.
*
* All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
* OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
* ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A
* PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
*
* See the Apache License, Version 2.0 for the specific language
* governing permissions and limitations under the License.
******************************************************************************/
package com.microsoft.aad.adal4j;
/***
* Credential type containing an assertion of type
* "urn:ietf:params:oauth:token-type:jwt".
*/
public final class ClientAssertion {
private final String assertion;
/**
* Constructor to create credential with a jwt token encoded as a base64 url
* encoded string.
*
* @param assertion
* The jwt used as credential.
*/
public ClientAssertion(final String assertion) {
if (StringHelper.isBlank(assertion)) {
throw new NullPointerException("assertion");
}
this.assertion = assertion;
}
/**
* Gets the assertion.
*
* @return string value
*/
public String getAssertion() {
return assertion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy