1 22 package org.jboss.security.srp; 23 24 import java.io.IOException ; 25 import java.io.Serializable ; 26 import java.io.ObjectStreamField ; 27 import java.security.KeyException ; 28 29 37 public interface SRPVerifierStore 38 { 39 public static class VerifierInfo implements Serializable 40 { 41 42 private static final long serialVersionUID = 7420301687504271098L; 43 private static final ObjectStreamField [] serialPersistentFields = { 44 new ObjectStreamField ("username", String .class), 45 new ObjectStreamField ("verifier", byte[].class), 46 new ObjectStreamField ("salt", byte[].class), 47 new ObjectStreamField ("g", byte[].class), 48 new ObjectStreamField ("N", byte[].class), 49 new ObjectStreamField ("hashAlgorithm", String .class), 50 new ObjectStreamField ("cipherAlgorithm", String .class), 51 new ObjectStreamField ("cipherIV", byte[].class) 52 }; 53 54 58 public String username; 59 62 public byte[] verifier; 63 66 public byte[] salt; 67 70 public byte[] g; 71 74 public byte[] N; 75 83 public String hashAlgorithm; 84 88 public String cipherAlgorithm; 89 93 public byte[] cipherIV; 94 } 95 96 98 public VerifierInfo getUserVerifier(String username) 99 throws KeyException , IOException ; 100 104 public void setUserVerifier(String username, VerifierInfo info) 105 throws IOException ; 106 107 113 public void verifyUserChallenge(String username, Object auxChallenge) 114 throws SecurityException ; 115 } 116 | Popular Tags |