Package com.collabnet.ce.soap60.oauth
Class OAuthSoapTokenGenerator
java.lang.Object
com.collabnet.ce.soap60.oauth.OAuthSoapTokenGenerator
OAuthSoapTokenGenerator generates OAuth tokens in soap layer. This acts as a facade around ctf oauth-support.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates anonymous oauth tokengenerateToken
(String username, String password, boolean ignorePasswordExpiry) Generates oauth soap token using resource owner password grant type.
-
Constructor Details
-
OAuthSoapTokenGenerator
public OAuthSoapTokenGenerator()
-
-
Method Details
-
generateToken
public String generateToken(String username, String password, boolean ignorePasswordExpiry) throws com.collabnet.ctf.idp.IdpException Generates oauth soap token using resource owner password grant type.- Parameters:
username
- the user's usernamepassword
- the user's passwordignorePasswordExpiry
- ignores password expiry check, if true; used only for "admin" user- Returns:
- OAuth soap token
- Throws:
com.collabnet.ctf.idp.IdpException
- occurs when authenticating user with invalid credentials
-
createAnonymousToken
Creates anonymous oauth token- Returns:
- anonymous oauth token
- Throws:
com.collabnet.ctf.idp.IdpException
- occurs when authenticating user with invalid credentials
-