docmasterdigitalsolutions / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

Association Creation from Persisted Data #191

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?
0.9.7

Please provide any additional information below.

Association should provide a method such as:

public static Association create( String handle, String type, byte[] mackey, 
Date expire) { ... } 

So that the mapping from the TYPE_ mapping logic does not need to be duplicated 
outside of the Association class where neither of the provided 
ServerAssociationStore implementations can be used. This would also alleviate 
concern about types being added/removed would not exist (for the most part). An 
example of where duplication exists already is in 
JdbcServerAssociationStore::load(...).

Original issue reported on code.google.com by nrg...@gmail.com on 20 Feb 2013 at 10:43