Package org.apereo.cas.digest.util
Class DigestAuthenticationUtils
- java.lang.Object
-
- org.apereo.cas.digest.util.DigestAuthenticationUtils
-
public class DigestAuthenticationUtils extends java.lang.ObjectThis isDigestAuthenticationUtils.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description DigestAuthenticationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcreateAuthenticateHeader(java.lang.String realm, java.lang.String authMethod, java.lang.String nonce)Create authenticate header, containing the realm, nonce, opaque, etc.static java.lang.StringcreateCnonce()Create c-nonce string.static java.lang.StringcreateNonce()Create nonce string.static java.lang.StringcreateOpaque(java.lang.String domain, java.lang.String nonce)Create opaque.
-
-
-
Method Detail
-
createNonce
public static java.lang.String createNonce()
Create nonce string.- Returns:
- the nonce
-
createCnonce
public static java.lang.String createCnonce()
Create c-nonce string.- Returns:
- the cnonce
-
createOpaque
public static java.lang.String createOpaque(java.lang.String domain, java.lang.String nonce)Create opaque.- Parameters:
domain- the domainnonce- the nonce- Returns:
- the opaque
-
createAuthenticateHeader
public static java.lang.String createAuthenticateHeader(java.lang.String realm, java.lang.String authMethod, java.lang.String nonce)Create authenticate header, containing the realm, nonce, opaque, etc.- Parameters:
realm- the realmauthMethod- the auth methodnonce- the nonce- Returns:
- the header string
-
-