.Net SecureString in Java

I am trying to use a third-party web authentication service on a client site. Web services were written in .Net and accept SecureString as the password type.

AuthResult Login(string username, SecureString passkey)

My application is written in Java and there is no compatible type for SecureString in Java, which I can use :( When I create the axis proxy, it generates a memberless stub for SecureString, and therefore I cannot make an authentication call to the service.

public class SecureString  implements java.io.Serializable {
    public SecureString() {
        ...
    }
}

I'm trying http://sanguinecomputing.com/a-secure-string-implementation-for-long-term-storage-of-sensitive-data-in-java/ , but I don't really hope

Can someone help me in solving this interaction problem? I am looking for a way to send a parameter of type secureString from Java application code to .Net Service.

+4
3

, .Net- SecureString . , , char[] .

0

... Java SecureString Java

... - ?

, Java SecureString.

Java char[] , . Java Cryptography Extension (JCE):

java.lang.String. : Objects of String , .. , , () . String , . char.

, SecureString char[], . .Net SecureString , ( , ). .

+1

. SecureString . , SecureString DPAPI, , / .

, API SecureString-type, . .

+1

Source: https://habr.com/ru/post/1533406/


All Articles