mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Added authentication framework
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user