mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-27 12:52:59 +08:00
50 lines
996 B
Java
50 lines
996 B
Java
![]() |
package com.phonegap;
|
||
|
|
||
|
/**
|
||
|
* The Class AuthenticationToken defines the principal and credentials to be used for authenticating a web resource
|
||
|
*/
|
||
|
public class AuthenticationToken {
|
||
|
private String principal;
|
||
|
private String credentials;
|
||
|
|
||
|
/**
|
||
|
* Gets the principal.
|
||
|
*
|
||
|
* @return the principal
|
||
|
*/
|
||
|
public String getPrincipal() {
|
||
|
return principal;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Sets the principal.
|
||
|
*
|
||
|
* @param principal
|
||
|
* the new principal
|
||
|
*/
|
||
|
public void setPrincipal(String principal) {
|
||
|
this.principal = principal;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the credentials.
|
||
|
*
|
||
|
* @return the credentials
|
||
|
*/
|
||
|
public String getCredentials() {
|
||
|
return credentials;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Sets the credentials.
|
||
|
*
|
||
|
* @param credentials
|
||
|
* the new credentials
|
||
|
*/
|
||
|
public void setCredentials(String credentials) {
|
||
|
this.credentials = credentials;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|