//, BinaryData binaryData) /// <summary> /// Creates a new instance of the Authentification /// </summary> /// <param name="className">ClassName</param> /// <param name="data">Data</param> /// <param name="binaryData">Binary Data</param> /// <returns>A new instance of Authentification</returns> public static AuthenticationInfo createInstance(String className, Data data) { AuthenticationInfo instance = new AuthenticationInfo(); instance.className = className; instance.data = data; //instance.binaryData = binaryData; return instance; }
/// <summary> /// Creates an instance of SecureMethodCallRequest /// </summary> /// <param name="principal">Principal</param> /// <param name="credentials">Credentials</param> /// <param name="message">Message</param> /// <returns>Instance of SecureMethodCallRequest</returns> public static SecureMethodCallRequest createInstance(String principal, AuthenticationInfo credentials, Message message) { SecureMethodCallRequest instance = new SecureMethodCallRequest(); instance.principal = principal; instance.credentials = credentials; instance.timestamp = DateTime.Now.Ticks; instance.message = message; return instance; }