Package com.atlassian.bamboo.specs.util
Class FileTokenCredentials
- java.lang.Object
-
- com.atlassian.bamboo.specs.util.FileTokenCredentials
-
- All Implemented Interfaces:
AuthenticationProvider,TokenCredentials
public class FileTokenCredentials extends Object implements TokenCredentials
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringTOKEN_PROPERTY
-
Constructor Summary
Constructors Constructor Description FileTokenCredentials(String credentialsLocation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringgetPropertyOrThrow(Properties properties, String propertyKey, String fileName)StringgetToken()protected static PropertiesloadProperties(String credentialsLocation)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.specs.util.TokenCredentials
authenticate
-
-
-
-
Field Detail
-
TOKEN_PROPERTY
protected static final String TOKEN_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getToken
public String getToken()
- Specified by:
getTokenin interfaceTokenCredentials
-
loadProperties
protected static Properties loadProperties(String credentialsLocation)
-
getPropertyOrThrow
protected static String getPropertyOrThrow(Properties properties, String propertyKey, String fileName)
-
-