pl.edu.icm.unity.oauth.as.token.KeyIdExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-oauth Show documentation
Show all versions of unity-server-oauth Show documentation
Client and server OAuth support
The newest version!
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.oauth.as.token;
import java.security.cert.X509Certificate;
public class KeyIdExtractor
{
public static String getKeyId(X509Certificate cert)
{
return cert.getSerialNumber()
.toString(10);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy