Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 45 package org.openejb.client; 46 47 import java.io.IOException ; 48 import java.io.ObjectInput ; 49 import java.io.ObjectOutput ; 50 51 56 public class AuthenticationRequest implements Request { 57 58 61 private transient Object principle; 62 66 private transient Object credentials; 67 68 71 public AuthenticationRequest() { 72 } 73 74 80 public AuthenticationRequest(Object principle, Object credentials) { 81 this.principle = principle; 82 this.credentials = credentials; 83 } 84 85 public byte getRequestType(){ 86 return AUTH_REQUEST; 87 } 88 89 90 95 public Object getPrinciple(){ 96 return principle; 97 } 98 99 104 public Object getCredentials(){ 105 return credentials; 106 } 107 108 113 public void setPrinciple(Object principle){ 114 this.principle = principle; 115 } 116 117 122 public void setCredentials(Object credentials){ 123 this.credentials = credentials; 124 } 125 126 138 public void readExternal(ObjectInput in) throws IOException ,ClassNotFoundException { 139 principle = in.readObject(); 140 credentials = in.readObject(); 141 } 142 152 public void writeExternal(ObjectOutput out) throws IOException { 153 out.writeObject(principle ); 154 out.writeObject(credentials); 155 } 156 } 157 158 159
| Popular Tags
|